{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "7b463f7d-6035-414a-8576-9982959781d9",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/data1/gq/anaconda3/envs/diffusion/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.\n",
      "  warnings.warn(\n",
      "/data1/gq/anaconda3/envs/diffusion/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=MobileNet_V3_Large_Weights.IMAGENET1K_V1`. You can also use `weights=MobileNet_V3_Large_Weights.DEFAULT` to get the most up-to-date weights.\n",
      "  warnings.warn(msg)\n"
     ]
    }
   ],
   "source": [
    "import torch\n",
    "import numpy as np\n",
    "from torchvision import models, transforms\n",
    "from PIL import Image\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "class CAM:\n",
    "    def __init__(self, model, target_layer):\n",
    "        self.model = model\n",
    "        self.model.eval()\n",
    "        self.target_layer = target_layer\n",
    "        self.activations = None\n",
    "        \n",
    "        # Register hook to save activations\n",
    "        target_layer.register_forward_hook(self.save_activation)\n",
    "\n",
    "    def save_activation(self, module, input, output):\n",
    "        self.activations = output\n",
    "\n",
    "    def forward(self, x):\n",
    "        return self.model(x)\n",
    "\n",
    "    def generate_cam(self, target_class):\n",
    "        # Get weights from the fully connected layer\n",
    "        fc_weights = self.model.classifier[3].weight[target_class][:96].detach().cpu().numpy()  # Only first 96 channels\n",
    "\n",
    "        # Get activations from the target convolutional layer\n",
    "        activations = self.activations[0].cpu().data.numpy()\n",
    "        \n",
    "        # Compute CAM as a weighted sum of activations\n",
    "        cam = np.zeros(activations.shape[1:], dtype=np.float32)\n",
    "        for i, w in enumerate(fc_weights):\n",
    "            cam += w * activations[i]\n",
    "        \n",
    "        cam = np.maximum(cam, 0)  # Apply ReLU\n",
    "        \n",
    "        # Use PIL to resize CAM\n",
    "        cam_img = Image.fromarray(np.uint8(255 * cam)).resize((224, 224), Image.BILINEAR)\n",
    "        cam = np.array(cam_img) / 255.0  # Normalize to 0-1 range\n",
    "        return cam\n",
    "\n",
    "    def __call__(self, input_tensor, target_class):\n",
    "        # Forward pass\n",
    "        output = self.forward(input_tensor)\n",
    "        \n",
    "        # Generate CAM\n",
    "        cam = self.generate_cam(target_class)\n",
    "        return cam\n",
    "\n",
    "# Load the MobileNetV3 model\n",
    "model = models.mobilenet_v3_large(pretrained=True)\n",
    "target_layer = model.features[-1]  # Last convolutional layer of MobileNetV3 Large\n",
    "\n",
    "# Initialize CAM\n",
    "cam_generator = CAM(model, target_layer)\n",
    "\n",
    "# Load and preprocess an image\n",
    "def preprocess_image(img_path):\n",
    "    preprocess = transforms.Compose([\n",
    "        transforms.Resize((224, 224)),\n",
    "        transforms.ToTensor(),\n",
    "        transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),\n",
    "    ])\n",
    "    img = Image.open(img_path).convert(\"RGB\")\n",
    "    img_tensor = preprocess(img).unsqueeze(0)\n",
    "    return img, img_tensor"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "96a5ff95-bd18-4ba3-9543-358f65f02eeb",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "/data/gq/data/imagenet/nips/cam/samples/79f953be91aa8ce2.png\n",
      "1\n",
      "/data/gq/data/imagenet/nips/cam/samples/4c8a4414419ab0bb.png\n",
      "2\n",
      "/data/gq/data/imagenet/nips/cam/samples/5bf502c4a4b7d04d.png\n",
      "3\n",
      "/data/gq/data/imagenet/nips/cam/samples/cebd45d7200f6111.png\n",
      "4\n",
      "/data/gq/data/imagenet/nips/cam/samples/f7dd570a0cfe1dcc.png\n",
      "5\n",
      "/data/gq/data/imagenet/nips/cam/samples/c9302f3b2b0452e4.png\n",
      "6\n",
      "/data/gq/data/imagenet/nips/cam/samples/6d2d82bc1ba0a956.png\n",
      "7\n",
      "/data/gq/data/imagenet/nips/cam/samples/2ed718f6db9785f8.png\n",
      "8\n",
      "/data/gq/data/imagenet/nips/cam/samples/8c8bc30a62a1ee23.png\n",
      "9\n",
      "/data/gq/data/imagenet/nips/cam/samples/d7ffed8f21024a14.png\n",
      "10\n",
      "/data/gq/data/imagenet/nips/cam/samples/9226b783cfb770bd.png\n",
      "11\n",
      "/data/gq/data/imagenet/nips/cam/samples/a8c3363bbcc7015c.png\n",
      "12\n",
      "/data/gq/data/imagenet/nips/cam/samples/b1bf532ce2c4c3a1.png\n",
      "13\n",
      "/data/gq/data/imagenet/nips/cam/samples/55512a6c2a45e2e8.png\n",
      "14\n",
      "/data/gq/data/imagenet/nips/cam/samples/63f2e14ab6be82cf.png\n",
      "15\n",
      "/data/gq/data/imagenet/nips/cam/samples/8090736c8299ab28.png\n",
      "16\n",
      "/data/gq/data/imagenet/nips/cam/samples/8a82ddd7ab76efbb.png\n",
      "17\n",
      "/data/gq/data/imagenet/nips/cam/samples/4b8517e927f32962.png\n",
      "18\n",
      "/data/gq/data/imagenet/nips/cam/samples/5a6439b10c1f6761.png\n",
      "19\n",
      "/data/gq/data/imagenet/nips/cam/samples/82179b1d313e0e23.png\n",
      "20\n",
      "/data/gq/data/imagenet/nips/cam/samples/0c7ac4a8c9dfa802.png\n",
      "21\n",
      "/data/gq/data/imagenet/nips/cam/samples/de40907c1e2c5515.png\n",
      "22\n",
      "/data/gq/data/imagenet/nips/cam/samples/5efeca6c4c233f01.png\n",
      "23\n",
      "/data/gq/data/imagenet/nips/cam/samples/d94940216544b2c5.png\n",
      "24\n",
      "/data/gq/data/imagenet/nips/cam/samples/263c7bcd59502625.png\n",
      "25\n",
      "/data/gq/data/imagenet/nips/cam/samples/060dfe239abfd547.png\n",
      "26\n",
      "/data/gq/data/imagenet/nips/cam/samples/ecaf98c8ce9f04c3.png\n",
      "27\n",
      "/data/gq/data/imagenet/nips/cam/samples/c8abefc975e94b10.png\n",
      "28\n",
      "/data/gq/data/imagenet/nips/cam/samples/c6e0d2ab3bbf4a3e.png\n",
      "29\n",
      "/data/gq/data/imagenet/nips/cam/samples/2891f4aa2279d369.png\n",
      "30\n",
      "/data/gq/data/imagenet/nips/cam/samples/ad43e858c614db4d.png\n",
      "31\n",
      "/data/gq/data/imagenet/nips/cam/samples/01244097ca8ffdfa.png\n",
      "32\n",
      "/data/gq/data/imagenet/nips/cam/samples/be1c43056c5d0085.png\n",
      "33\n",
      "/data/gq/data/imagenet/nips/cam/samples/08fbf75e60a6efb7.png\n",
      "34\n",
      "/data/gq/data/imagenet/nips/cam/samples/6cae4a23623d142b.png\n",
      "35\n",
      "/data/gq/data/imagenet/nips/cam/samples/34a39905ce228160.png\n",
      "36\n",
      "/data/gq/data/imagenet/nips/cam/samples/ea65c0ff71e7ceb3.png\n",
      "37\n",
      "/data/gq/data/imagenet/nips/cam/samples/90dfd75887f3e67b.png\n",
      "38\n",
      "/data/gq/data/imagenet/nips/cam/samples/f33087679c5e7799.png\n",
      "39\n",
      "/data/gq/data/imagenet/nips/cam/samples/95fbd20d0aaf319a.png\n",
      "40\n",
      "/data/gq/data/imagenet/nips/cam/samples/7d599306068f4594.png\n",
      "41\n",
      "/data/gq/data/imagenet/nips/cam/samples/cbaff3255afbe83f.png\n",
      "42\n",
      "/data/gq/data/imagenet/nips/cam/samples/b8596bba57a73794.png\n",
      "43\n",
      "/data/gq/data/imagenet/nips/cam/samples/ba4b978112a20be1.png\n",
      "44\n",
      "/data/gq/data/imagenet/nips/cam/samples/23955512cd0e1191.png\n",
      "45\n",
      "/data/gq/data/imagenet/nips/cam/samples/04c1bde5affb7b5b.png\n",
      "46\n",
      "/data/gq/data/imagenet/nips/cam/samples/ecd3a969dd466349.png\n",
      "47\n",
      "/data/gq/data/imagenet/nips/cam/samples/380053c506e32105.png\n",
      "48\n",
      "/data/gq/data/imagenet/nips/cam/samples/fdedd06cdf58084e.png\n",
      "49\n",
      "/data/gq/data/imagenet/nips/cam/samples/44982b98ba192bb7.png\n",
      "50\n",
      "/data/gq/data/imagenet/nips/cam/samples/858ec91996beb034.png\n",
      "51\n",
      "/data/gq/data/imagenet/nips/cam/samples/1ba816dc6937b62d.png\n",
      "52\n",
      "/data/gq/data/imagenet/nips/cam/samples/6898f889c17f8e16.png\n",
      "53\n",
      "/data/gq/data/imagenet/nips/cam/samples/b0bb1ea9bcc45800.png\n",
      "54\n",
      "/data/gq/data/imagenet/nips/cam/samples/44fa09bc5f8e69a5.png\n",
      "55\n",
      "/data/gq/data/imagenet/nips/cam/samples/f9f36f7774d73820.png\n",
      "56\n",
      "/data/gq/data/imagenet/nips/cam/samples/93a0857ff81c25ce.png\n",
      "57\n",
      "/data/gq/data/imagenet/nips/cam/samples/b3c384a2d1a391c0.png\n",
      "58\n",
      "/data/gq/data/imagenet/nips/cam/samples/17df043d369008f5.png\n",
      "59\n",
      "/data/gq/data/imagenet/nips/cam/samples/1dc0533f87996962.png\n",
      "60\n",
      "/data/gq/data/imagenet/nips/cam/samples/4e1bdcb677f21fb4.png\n",
      "61\n",
      "/data/gq/data/imagenet/nips/cam/samples/3dc0e8f854bdc9b3.png\n",
      "62\n",
      "/data/gq/data/imagenet/nips/cam/samples/de282cea97167923.png\n",
      "63\n",
      "/data/gq/data/imagenet/nips/cam/samples/1bb5f1337dfb1edd.png\n",
      "64\n",
      "/data/gq/data/imagenet/nips/cam/samples/319e8b63d6a194aa.png\n",
      "65\n",
      "/data/gq/data/imagenet/nips/cam/samples/564de663adeb8cd5.png\n",
      "66\n",
      "/data/gq/data/imagenet/nips/cam/samples/43694caa12d5f823.png\n",
      "67\n",
      "/data/gq/data/imagenet/nips/cam/samples/e758de2cbb3d10a0.png\n",
      "68\n",
      "/data/gq/data/imagenet/nips/cam/samples/7d253f78ef6f029a.png\n",
      "69\n",
      "/data/gq/data/imagenet/nips/cam/samples/4a251fb6d80b5137.png\n",
      "70\n",
      "/data/gq/data/imagenet/nips/cam/samples/fc94d8ed9eca8c51.png\n",
      "71\n",
      "/data/gq/data/imagenet/nips/cam/samples/e66d732354c6baf0.png\n",
      "72\n",
      "/data/gq/data/imagenet/nips/cam/samples/607702d7ef44d081.png\n",
      "73\n",
      "/data/gq/data/imagenet/nips/cam/samples/7524a7ef9de8edc3.png\n",
      "74\n",
      "/data/gq/data/imagenet/nips/cam/samples/90e1aa56cae80a60.png\n",
      "75\n",
      "/data/gq/data/imagenet/nips/cam/samples/11afa51200515f9a.png\n",
      "76\n",
      "/data/gq/data/imagenet/nips/cam/samples/35c344ca0584ba14.png\n",
      "77\n",
      "/data/gq/data/imagenet/nips/cam/samples/5ff168f7d006f69c.png\n",
      "78\n",
      "/data/gq/data/imagenet/nips/cam/samples/2b7e6f0d6f73fa1f.png\n",
      "79\n",
      "/data/gq/data/imagenet/nips/cam/samples/f20783fc38473514.png\n",
      "80\n",
      "/data/gq/data/imagenet/nips/cam/samples/6ecbd7d19f5b9147.png\n",
      "81\n",
      "/data/gq/data/imagenet/nips/cam/samples/aa90f93ed6fae139.png\n",
      "82\n",
      "/data/gq/data/imagenet/nips/cam/samples/3e9496f7652e1968.png\n",
      "83\n",
      "/data/gq/data/imagenet/nips/cam/samples/69a3493d13953e1f.png\n",
      "84\n",
      "/data/gq/data/imagenet/nips/cam/samples/89d8361c6bfe905c.png\n",
      "85\n",
      "/data/gq/data/imagenet/nips/cam/samples/c819099fed6f0d73.png\n",
      "86\n",
      "/data/gq/data/imagenet/nips/cam/samples/fa2a7d600b62174e.png\n",
      "87\n",
      "/data/gq/data/imagenet/nips/cam/samples/2ba52bcf59097dc8.png\n",
      "88\n",
      "/data/gq/data/imagenet/nips/cam/samples/3841b33c9797cbf1.png\n",
      "89\n",
      "/data/gq/data/imagenet/nips/cam/samples/f54616f2af588fd8.png\n",
      "90\n",
      "/data/gq/data/imagenet/nips/cam/samples/62ebd5f7ce015380.png\n",
      "91\n",
      "/data/gq/data/imagenet/nips/cam/samples/90ab38bb74020d5a.png\n",
      "92\n",
      "/data/gq/data/imagenet/nips/cam/samples/d4579363596fbf21.png\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/tmp/ipykernel_3399965/3872496649.py:22: RuntimeWarning: invalid value encountered in divide\n",
      "  im = cam / np.max(cam) * 255\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "93\n",
      "/data/gq/data/imagenet/nips/cam/samples/979757e16b67ac7e.png\n",
      "94\n",
      "/data/gq/data/imagenet/nips/cam/samples/c135b139d293f7f2.png\n",
      "95\n",
      "/data/gq/data/imagenet/nips/cam/samples/1ef172b89f4a39cf.png\n",
      "96\n",
      "/data/gq/data/imagenet/nips/cam/samples/513b3032ed1f388c.png\n",
      "97\n",
      "/data/gq/data/imagenet/nips/cam/samples/0e0299d6352a3fb8.png\n",
      "98\n",
      "/data/gq/data/imagenet/nips/cam/samples/5d6c4759c26bae8c.png\n",
      "99\n",
      "/data/gq/data/imagenet/nips/cam/samples/3bfe9ff7b488485d.png\n",
      "100\n",
      "/data/gq/data/imagenet/nips/cam/samples/fe2edb6cad72d2d2.png\n",
      "101\n",
      "/data/gq/data/imagenet/nips/cam/samples/bc9a5e01c02e759e.png\n",
      "102\n",
      "/data/gq/data/imagenet/nips/cam/samples/3201d10ec4dca056.png\n",
      "103\n",
      "/data/gq/data/imagenet/nips/cam/samples/25eef91443ded954.png\n",
      "104\n",
      "/data/gq/data/imagenet/nips/cam/samples/b2a7e558f1a3ff16.png\n",
      "105\n",
      "/data/gq/data/imagenet/nips/cam/samples/a5949b0719d3ea77.png\n",
      "106\n",
      "/data/gq/data/imagenet/nips/cam/samples/6af829a442e2e0e7.png\n",
      "107\n",
      "/data/gq/data/imagenet/nips/cam/samples/a92e49d8bbdc2aae.png\n",
      "108\n",
      "/data/gq/data/imagenet/nips/cam/samples/6609c25b3314b5b3.png\n",
      "109\n",
      "/data/gq/data/imagenet/nips/cam/samples/f4902a569fa12171.png\n",
      "110\n",
      "/data/gq/data/imagenet/nips/cam/samples/72f96c6dc5df2de8.png\n",
      "111\n",
      "/data/gq/data/imagenet/nips/cam/samples/55323ce1ff485412.png\n",
      "112\n",
      "/data/gq/data/imagenet/nips/cam/samples/3dfbdd066af9ca1e.png\n",
      "113\n",
      "/data/gq/data/imagenet/nips/cam/samples/56e9d5f63cfc507e.png\n",
      "114\n",
      "/data/gq/data/imagenet/nips/cam/samples/a33af1b9f8b8a81b.png\n",
      "115\n",
      "/data/gq/data/imagenet/nips/cam/samples/f5b0ed0fbb3b5f74.png\n",
      "116\n",
      "/data/gq/data/imagenet/nips/cam/samples/62e0e0efc6deeef4.png\n",
      "117\n",
      "/data/gq/data/imagenet/nips/cam/samples/74bfc95412b2f824.png\n",
      "118\n",
      "/data/gq/data/imagenet/nips/cam/samples/38d8d105d5e70c80.png\n",
      "119\n",
      "/data/gq/data/imagenet/nips/cam/samples/fbc6b98b13c768e2.png\n",
      "120\n",
      "/data/gq/data/imagenet/nips/cam/samples/8af30e5c3fa48a08.png\n",
      "121\n",
      "/data/gq/data/imagenet/nips/cam/samples/67dd47336dc89421.png\n",
      "122\n",
      "/data/gq/data/imagenet/nips/cam/samples/2c9398f44d099e0f.png\n",
      "123\n",
      "/data/gq/data/imagenet/nips/cam/samples/4a0bac33f8e81e60.png\n",
      "124\n",
      "/data/gq/data/imagenet/nips/cam/samples/324278ff7f22b4eb.png\n",
      "125\n",
      "/data/gq/data/imagenet/nips/cam/samples/71d368782c72e313.png\n",
      "126\n",
      "/data/gq/data/imagenet/nips/cam/samples/7d7a8e41b8d0577e.png\n",
      "127\n",
      "/data/gq/data/imagenet/nips/cam/samples/ed3573d0c197fbaf.png\n",
      "128\n",
      "/data/gq/data/imagenet/nips/cam/samples/56dbd7d814ef5c58.png\n",
      "129\n",
      "/data/gq/data/imagenet/nips/cam/samples/b722c809657aecee.png\n",
      "130\n",
      "/data/gq/data/imagenet/nips/cam/samples/aa07ba1587ec047e.png\n",
      "131\n",
      "/data/gq/data/imagenet/nips/cam/samples/46b657df12fd7c26.png\n",
      "132\n",
      "/data/gq/data/imagenet/nips/cam/samples/8e9e976fc98e3cfa.png\n",
      "133\n",
      "/data/gq/data/imagenet/nips/cam/samples/97025d82ec9860dc.png\n",
      "134\n",
      "/data/gq/data/imagenet/nips/cam/samples/749ed3502293d019.png\n",
      "135\n",
      "/data/gq/data/imagenet/nips/cam/samples/2d23b1dab7e3e9c0.png\n",
      "136\n",
      "/data/gq/data/imagenet/nips/cam/samples/0e0f1fd2ed183781.png\n",
      "137\n",
      "/data/gq/data/imagenet/nips/cam/samples/5ab3f1edd2f0cb06.png\n",
      "138\n",
      "/data/gq/data/imagenet/nips/cam/samples/a00c8d22e63497c4.png\n",
      "139\n",
      "/data/gq/data/imagenet/nips/cam/samples/18d5f99fe237a306.png\n",
      "140\n",
      "/data/gq/data/imagenet/nips/cam/samples/0bd5123017590e39.png\n",
      "141\n",
      "/data/gq/data/imagenet/nips/cam/samples/038fd7a750733bb5.png\n",
      "142\n",
      "/data/gq/data/imagenet/nips/cam/samples/64577d3916d6dafb.png\n",
      "143\n",
      "/data/gq/data/imagenet/nips/cam/samples/d392f0639c17f396.png\n",
      "144\n",
      "/data/gq/data/imagenet/nips/cam/samples/7d2a7bca22967f29.png\n",
      "145\n",
      "/data/gq/data/imagenet/nips/cam/samples/fa5484e61e455eb2.png\n",
      "146\n",
      "/data/gq/data/imagenet/nips/cam/samples/8f97e3fface13e4d.png\n",
      "147\n",
      "/data/gq/data/imagenet/nips/cam/samples/50b9e11ae686ae32.png\n",
      "148\n",
      "/data/gq/data/imagenet/nips/cam/samples/4f04ca75d7aafc0a.png\n",
      "149\n",
      "/data/gq/data/imagenet/nips/cam/samples/f348adf7ea1967f7.png\n",
      "150\n",
      "/data/gq/data/imagenet/nips/cam/samples/90e9a43bfb6a68b7.png\n",
      "151\n",
      "/data/gq/data/imagenet/nips/cam/samples/232c22314e21f764.png\n",
      "152\n",
      "/data/gq/data/imagenet/nips/cam/samples/8f07c92f0af97807.png\n",
      "153\n",
      "/data/gq/data/imagenet/nips/cam/samples/54666421b4a6998f.png\n",
      "154\n",
      "/data/gq/data/imagenet/nips/cam/samples/7529b42e71769777.png\n",
      "155\n",
      "/data/gq/data/imagenet/nips/cam/samples/444109f3ccfacc7b.png\n",
      "156\n",
      "/data/gq/data/imagenet/nips/cam/samples/baeb1300832574aa.png\n",
      "157\n",
      "/data/gq/data/imagenet/nips/cam/samples/ec346009f286ffca.png\n",
      "158\n",
      "/data/gq/data/imagenet/nips/cam/samples/5d6b9cadb6f9e1cd.png\n",
      "159\n",
      "/data/gq/data/imagenet/nips/cam/samples/afb0233b2e0545c4.png\n",
      "160\n",
      "/data/gq/data/imagenet/nips/cam/samples/121c87c3c822e2c5.png\n",
      "161\n",
      "/data/gq/data/imagenet/nips/cam/samples/8da3593258ae27cb.png\n",
      "162\n",
      "/data/gq/data/imagenet/nips/cam/samples/b58e8d136aff5a50.png\n",
      "163\n",
      "/data/gq/data/imagenet/nips/cam/samples/60f5900a00d94b25.png\n",
      "164\n",
      "/data/gq/data/imagenet/nips/cam/samples/d34c51d7523e9c0f.png\n",
      "165\n",
      "/data/gq/data/imagenet/nips/cam/samples/919a6f1d23c6d05e.png\n",
      "166\n",
      "/data/gq/data/imagenet/nips/cam/samples/f2d36d089779166a.png\n",
      "167\n",
      "/data/gq/data/imagenet/nips/cam/samples/1a680f33500acb4b.png\n",
      "168\n",
      "/data/gq/data/imagenet/nips/cam/samples/1a264165276e3c85.png\n",
      "169\n",
      "/data/gq/data/imagenet/nips/cam/samples/9cf861a657c27cec.png\n",
      "170\n",
      "/data/gq/data/imagenet/nips/cam/samples/0d65cb9d26de4d37.png\n",
      "171\n",
      "/data/gq/data/imagenet/nips/cam/samples/6217866896fbe2b7.png\n",
      "172\n",
      "/data/gq/data/imagenet/nips/cam/samples/869adfbad4e38261.png\n",
      "173\n",
      "/data/gq/data/imagenet/nips/cam/samples/9a5913e0fb6d0866.png\n",
      "174\n",
      "/data/gq/data/imagenet/nips/cam/samples/7d2e9b03ec1b630b.png\n",
      "175\n",
      "/data/gq/data/imagenet/nips/cam/samples/9fbeb797de1e1639.png\n",
      "176\n",
      "/data/gq/data/imagenet/nips/cam/samples/c9ddfb1043177de8.png\n",
      "177\n",
      "/data/gq/data/imagenet/nips/cam/samples/d204464fcf15ad99.png\n",
      "178\n",
      "/data/gq/data/imagenet/nips/cam/samples/0411ca972e637297.png\n",
      "179\n",
      "/data/gq/data/imagenet/nips/cam/samples/22a313cc9fc2b4f1.png\n",
      "180\n",
      "/data/gq/data/imagenet/nips/cam/samples/143c74a57326fd40.png\n",
      "181\n",
      "/data/gq/data/imagenet/nips/cam/samples/228fec6cab5f560d.png\n",
      "182\n",
      "/data/gq/data/imagenet/nips/cam/samples/791c3d333052ca64.png\n",
      "183\n",
      "/data/gq/data/imagenet/nips/cam/samples/fc583c08026e3d74.png\n",
      "184\n",
      "/data/gq/data/imagenet/nips/cam/samples/cc13c2bc5cdd1f44.png\n",
      "185\n",
      "/data/gq/data/imagenet/nips/cam/samples/38deb4830d12358f.png\n",
      "186\n",
      "/data/gq/data/imagenet/nips/cam/samples/7a85f42383ec2f81.png\n",
      "187\n",
      "/data/gq/data/imagenet/nips/cam/samples/4cccb215bd60b3c3.png\n",
      "188\n",
      "/data/gq/data/imagenet/nips/cam/samples/7b8413ef241118df.png\n",
      "189\n",
      "/data/gq/data/imagenet/nips/cam/samples/8f5eda0b6a910b43.png\n",
      "190\n",
      "/data/gq/data/imagenet/nips/cam/samples/6314b953a2f66e36.png\n",
      "191\n",
      "/data/gq/data/imagenet/nips/cam/samples/648231d9393250fd.png\n",
      "192\n",
      "/data/gq/data/imagenet/nips/cam/samples/22a9c318b6e36853.png\n",
      "193\n",
      "/data/gq/data/imagenet/nips/cam/samples/6711e27733cfd050.png\n",
      "194\n",
      "/data/gq/data/imagenet/nips/cam/samples/9534108b0e8dceb1.png\n",
      "195\n",
      "/data/gq/data/imagenet/nips/cam/samples/296033c3a5910845.png\n",
      "196\n",
      "/data/gq/data/imagenet/nips/cam/samples/1e26772fc8c493bb.png\n",
      "197\n",
      "/data/gq/data/imagenet/nips/cam/samples/d6eac6858474111c.png\n",
      "198\n",
      "/data/gq/data/imagenet/nips/cam/samples/5d77597361d06d2b.png\n",
      "199\n",
      "/data/gq/data/imagenet/nips/cam/samples/7c249a944594a62e.png\n",
      "200\n",
      "/data/gq/data/imagenet/nips/cam/samples/9a49001b63903f72.png\n",
      "201\n",
      "/data/gq/data/imagenet/nips/cam/samples/1ac44ddb6a2d497a.png\n",
      "202\n",
      "/data/gq/data/imagenet/nips/cam/samples/7f3c20f487834846.png\n",
      "203\n",
      "/data/gq/data/imagenet/nips/cam/samples/ed56c7616a8ac010.png\n",
      "204\n",
      "/data/gq/data/imagenet/nips/cam/samples/e3f5dbed7bd31314.png\n",
      "205\n",
      "/data/gq/data/imagenet/nips/cam/samples/ce05236afebb173d.png\n",
      "206\n",
      "/data/gq/data/imagenet/nips/cam/samples/68274b8293271807.png\n",
      "207\n",
      "/data/gq/data/imagenet/nips/cam/samples/d67b326ef48bb7b7.png\n",
      "208\n",
      "/data/gq/data/imagenet/nips/cam/samples/d02adcb9140880a1.png\n",
      "209\n",
      "/data/gq/data/imagenet/nips/cam/samples/fa3aae44c2675e88.png\n",
      "210\n",
      "/data/gq/data/imagenet/nips/cam/samples/38287d2e5a4a9a57.png\n",
      "211\n",
      "/data/gq/data/imagenet/nips/cam/samples/c609f86fa706bb9e.png\n",
      "212\n",
      "/data/gq/data/imagenet/nips/cam/samples/d6887e8d19a06139.png\n",
      "213\n",
      "/data/gq/data/imagenet/nips/cam/samples/c755f3b0f89028fc.png\n",
      "214\n",
      "/data/gq/data/imagenet/nips/cam/samples/2fc17ec1fad5d947.png\n",
      "215\n",
      "/data/gq/data/imagenet/nips/cam/samples/b86d604067f50613.png\n",
      "216\n",
      "/data/gq/data/imagenet/nips/cam/samples/2c065d2dc6b2cf44.png\n",
      "217\n",
      "/data/gq/data/imagenet/nips/cam/samples/acd99e9b7128395a.png\n",
      "218\n",
      "/data/gq/data/imagenet/nips/cam/samples/8764eecf6e898c7f.png\n",
      "219\n",
      "/data/gq/data/imagenet/nips/cam/samples/15d27dbdc9eeda7f.png\n",
      "220\n",
      "/data/gq/data/imagenet/nips/cam/samples/5b85f98e0105d135.png\n",
      "221\n",
      "/data/gq/data/imagenet/nips/cam/samples/1df5e1adad21d618.png\n",
      "222\n",
      "/data/gq/data/imagenet/nips/cam/samples/b3f200c672c5ca4f.png\n",
      "223\n",
      "/data/gq/data/imagenet/nips/cam/samples/87fcc5f70673d3d2.png\n",
      "224\n",
      "/data/gq/data/imagenet/nips/cam/samples/29279d12ed3e29ff.png\n",
      "225\n",
      "/data/gq/data/imagenet/nips/cam/samples/8400742ba78ac009.png\n",
      "226\n",
      "/data/gq/data/imagenet/nips/cam/samples/d6d42f8a1f6b4460.png\n",
      "227\n",
      "/data/gq/data/imagenet/nips/cam/samples/f52db15134c1a74e.png\n",
      "228\n",
      "/data/gq/data/imagenet/nips/cam/samples/92c3f5e99d8ac862.png\n",
      "229\n",
      "/data/gq/data/imagenet/nips/cam/samples/0e9bdc3ab80b1a71.png\n",
      "230\n",
      "/data/gq/data/imagenet/nips/cam/samples/80177288cda51d95.png\n",
      "231\n",
      "/data/gq/data/imagenet/nips/cam/samples/fccfc3563cd562e1.png\n",
      "232\n",
      "/data/gq/data/imagenet/nips/cam/samples/6ac94c9244f84aa3.png\n",
      "233\n",
      "/data/gq/data/imagenet/nips/cam/samples/ac2a8a4777dbe746.png\n",
      "234\n",
      "/data/gq/data/imagenet/nips/cam/samples/4b0c9bf2584b35d3.png\n",
      "235\n",
      "/data/gq/data/imagenet/nips/cam/samples/d7c8008bf74f2324.png\n",
      "236\n",
      "/data/gq/data/imagenet/nips/cam/samples/adcf48b42266309d.png\n",
      "237\n",
      "/data/gq/data/imagenet/nips/cam/samples/7b6a9bf5b175e3b2.png\n",
      "238\n",
      "/data/gq/data/imagenet/nips/cam/samples/74dbbe535861d709.png\n",
      "239\n",
      "/data/gq/data/imagenet/nips/cam/samples/a90d9627e2145090.png\n",
      "240\n",
      "/data/gq/data/imagenet/nips/cam/samples/93114736f072d6d3.png\n",
      "241\n",
      "/data/gq/data/imagenet/nips/cam/samples/1dfbeffd999f280e.png\n",
      "242\n",
      "/data/gq/data/imagenet/nips/cam/samples/e6f2de0c605f1ed3.png\n",
      "243\n",
      "/data/gq/data/imagenet/nips/cam/samples/fae45093bad0961a.png\n",
      "244\n",
      "/data/gq/data/imagenet/nips/cam/samples/daa43d65c3b18a84.png\n",
      "245\n",
      "/data/gq/data/imagenet/nips/cam/samples/d0c6c29954f0380b.png\n",
      "246\n",
      "/data/gq/data/imagenet/nips/cam/samples/eee6f4bcc8468f77.png\n",
      "247\n",
      "/data/gq/data/imagenet/nips/cam/samples/4fcc9c949d66a4e0.png\n",
      "248\n",
      "/data/gq/data/imagenet/nips/cam/samples/72e6ba0cc7fb30a6.png\n",
      "249\n",
      "/data/gq/data/imagenet/nips/cam/samples/70a2529a6b2c0d46.png\n",
      "250\n",
      "/data/gq/data/imagenet/nips/cam/samples/9429f0d1ad2283df.png\n",
      "251\n",
      "/data/gq/data/imagenet/nips/cam/samples/9b4cab2ffb0c0754.png\n",
      "252\n",
      "/data/gq/data/imagenet/nips/cam/samples/5ceb9f2e8405b0de.png\n",
      "253\n",
      "/data/gq/data/imagenet/nips/cam/samples/8f5e0855ca8de8ea.png\n",
      "254\n",
      "/data/gq/data/imagenet/nips/cam/samples/1d4133f5bc7af193.png\n",
      "255\n",
      "/data/gq/data/imagenet/nips/cam/samples/b9310b9080c06e4f.png\n",
      "256\n",
      "/data/gq/data/imagenet/nips/cam/samples/2842a69bf5b14526.png\n",
      "257\n",
      "/data/gq/data/imagenet/nips/cam/samples/29fe8d653950a631.png\n",
      "258\n",
      "/data/gq/data/imagenet/nips/cam/samples/60ab0fb53634bc3c.png\n",
      "259\n",
      "/data/gq/data/imagenet/nips/cam/samples/128fca690a11f68c.png\n",
      "260\n",
      "/data/gq/data/imagenet/nips/cam/samples/3617bfc5d06bc196.png\n",
      "261\n",
      "/data/gq/data/imagenet/nips/cam/samples/891fe6baf8896b77.png\n",
      "262\n",
      "/data/gq/data/imagenet/nips/cam/samples/24159caf9c5e92be.png\n",
      "263\n",
      "/data/gq/data/imagenet/nips/cam/samples/da63f2acf683c0a7.png\n",
      "264\n",
      "/data/gq/data/imagenet/nips/cam/samples/f0add7f552d2d895.png\n",
      "265\n",
      "/data/gq/data/imagenet/nips/cam/samples/5fc906f27c8975d2.png\n",
      "266\n",
      "/data/gq/data/imagenet/nips/cam/samples/8020698d79dc39f2.png\n",
      "267\n",
      "/data/gq/data/imagenet/nips/cam/samples/8724748782cb6c31.png\n",
      "268\n",
      "/data/gq/data/imagenet/nips/cam/samples/668bc83a884d24f9.png\n",
      "269\n",
      "/data/gq/data/imagenet/nips/cam/samples/c98a8640dcfaa5e0.png\n",
      "270\n",
      "/data/gq/data/imagenet/nips/cam/samples/0af0a5dfee6b84ff.png\n",
      "271\n",
      "/data/gq/data/imagenet/nips/cam/samples/a7f9b28e30d19d85.png\n",
      "272\n",
      "/data/gq/data/imagenet/nips/cam/samples/d3aa8ee50458c020.png\n",
      "273\n",
      "/data/gq/data/imagenet/nips/cam/samples/741fc1a3fc08731d.png\n",
      "274\n",
      "/data/gq/data/imagenet/nips/cam/samples/490df9e021386d29.png\n",
      "275\n",
      "/data/gq/data/imagenet/nips/cam/samples/348ac56def3ccd35.png\n",
      "276\n",
      "/data/gq/data/imagenet/nips/cam/samples/f6515f31b750a573.png\n",
      "277\n",
      "/data/gq/data/imagenet/nips/cam/samples/23f39187c0d00e30.png\n",
      "278\n",
      "/data/gq/data/imagenet/nips/cam/samples/4a1a488e8a975f7c.png\n",
      "279\n",
      "/data/gq/data/imagenet/nips/cam/samples/6d6078c60e59e9f4.png\n",
      "280\n",
      "/data/gq/data/imagenet/nips/cam/samples/e5948d6294eb8ca3.png\n",
      "281\n",
      "/data/gq/data/imagenet/nips/cam/samples/12cf4de43c70273e.png\n",
      "282\n",
      "/data/gq/data/imagenet/nips/cam/samples/9db1070b1b9f03d2.png\n",
      "283\n",
      "/data/gq/data/imagenet/nips/cam/samples/e5cf220f8144c192.png\n",
      "284\n",
      "/data/gq/data/imagenet/nips/cam/samples/c335ce88293384f2.png\n",
      "285\n",
      "/data/gq/data/imagenet/nips/cam/samples/3a7d9bd310202e93.png\n",
      "286\n",
      "/data/gq/data/imagenet/nips/cam/samples/a52570066ecc61fd.png\n",
      "287\n",
      "/data/gq/data/imagenet/nips/cam/samples/5021e7da00bf43b2.png\n",
      "288\n",
      "/data/gq/data/imagenet/nips/cam/samples/bfb2aaf48d7fc08c.png\n",
      "289\n",
      "/data/gq/data/imagenet/nips/cam/samples/0e71473957df4793.png\n",
      "290\n",
      "/data/gq/data/imagenet/nips/cam/samples/c8231978dc765004.png\n",
      "291\n",
      "/data/gq/data/imagenet/nips/cam/samples/9ee13ecd8d6727c0.png\n",
      "292\n",
      "/data/gq/data/imagenet/nips/cam/samples/92dbb18dd447fd75.png\n",
      "293\n",
      "/data/gq/data/imagenet/nips/cam/samples/f4bde5facfdca0c6.png\n",
      "294\n",
      "/data/gq/data/imagenet/nips/cam/samples/448a738f6dcba07e.png\n",
      "295\n",
      "/data/gq/data/imagenet/nips/cam/samples/91d18b353d5b3be2.png\n",
      "296\n",
      "/data/gq/data/imagenet/nips/cam/samples/8b47d72b39b2bd33.png\n",
      "297\n",
      "/data/gq/data/imagenet/nips/cam/samples/3692f6967c632fee.png\n",
      "298\n",
      "/data/gq/data/imagenet/nips/cam/samples/da7e65bc80814f37.png\n",
      "299\n",
      "/data/gq/data/imagenet/nips/cam/samples/3b67bec3793efcb4.png\n",
      "300\n",
      "/data/gq/data/imagenet/nips/cam/samples/b76e552d4b3ec0c3.png\n",
      "301\n",
      "/data/gq/data/imagenet/nips/cam/samples/477bf90e7413df23.png\n",
      "302\n",
      "/data/gq/data/imagenet/nips/cam/samples/d2d2b255935f0aae.png\n",
      "303\n",
      "/data/gq/data/imagenet/nips/cam/samples/38546e7d7136c2ab.png\n",
      "304\n",
      "/data/gq/data/imagenet/nips/cam/samples/7e73c7adc520e406.png\n",
      "305\n",
      "/data/gq/data/imagenet/nips/cam/samples/becf3b004177ded6.png\n",
      "306\n",
      "/data/gq/data/imagenet/nips/cam/samples/4abadb721e74b99b.png\n",
      "307\n",
      "/data/gq/data/imagenet/nips/cam/samples/d3a88c50958b1b5f.png\n",
      "308\n",
      "/data/gq/data/imagenet/nips/cam/samples/16179baa1513c701.png\n",
      "309\n",
      "/data/gq/data/imagenet/nips/cam/samples/b11fa0f292c0178f.png\n",
      "310\n",
      "/data/gq/data/imagenet/nips/cam/samples/6ab876a15af539c4.png\n",
      "311\n",
      "/data/gq/data/imagenet/nips/cam/samples/02dbe78a73db2808.png\n",
      "312\n",
      "/data/gq/data/imagenet/nips/cam/samples/6a940d1bf69f1d10.png\n",
      "313\n",
      "/data/gq/data/imagenet/nips/cam/samples/c47ca11294a9aefe.png\n",
      "314\n",
      "/data/gq/data/imagenet/nips/cam/samples/330b9cb3cd80c88b.png\n",
      "315\n",
      "/data/gq/data/imagenet/nips/cam/samples/48762c2cd2ed47e1.png\n",
      "316\n",
      "/data/gq/data/imagenet/nips/cam/samples/821aae58dc96b4b2.png\n",
      "317\n",
      "/data/gq/data/imagenet/nips/cam/samples/55b85f4336d9603a.png\n",
      "318\n",
      "/data/gq/data/imagenet/nips/cam/samples/6612fd36e6dd9534.png\n",
      "319\n",
      "/data/gq/data/imagenet/nips/cam/samples/ac295a63ac9d2cd7.png\n",
      "320\n",
      "/data/gq/data/imagenet/nips/cam/samples/e648427e38e80ff8.png\n",
      "321\n",
      "/data/gq/data/imagenet/nips/cam/samples/dc12a25cc85ee9cf.png\n",
      "322\n",
      "/data/gq/data/imagenet/nips/cam/samples/b97f4b95ae696316.png\n",
      "323\n",
      "/data/gq/data/imagenet/nips/cam/samples/21b0803c965f76ef.png\n",
      "324\n",
      "/data/gq/data/imagenet/nips/cam/samples/1394faa319bd353c.png\n",
      "325\n",
      "/data/gq/data/imagenet/nips/cam/samples/088560551b91ceb0.png\n",
      "326\n",
      "/data/gq/data/imagenet/nips/cam/samples/16ff75228179469c.png\n",
      "327\n",
      "/data/gq/data/imagenet/nips/cam/samples/3ece3c1f94e4141a.png\n",
      "328\n",
      "/data/gq/data/imagenet/nips/cam/samples/1cbae41091a750dc.png\n",
      "329\n",
      "/data/gq/data/imagenet/nips/cam/samples/8df3dc0c3fef1824.png\n",
      "330\n",
      "/data/gq/data/imagenet/nips/cam/samples/871c99d5658c3189.png\n",
      "331\n",
      "/data/gq/data/imagenet/nips/cam/samples/84af93c72781b7f0.png\n",
      "332\n",
      "/data/gq/data/imagenet/nips/cam/samples/a193f7ae7d550a82.png\n",
      "333\n",
      "/data/gq/data/imagenet/nips/cam/samples/70b9b8ae11327472.png\n",
      "334\n",
      "/data/gq/data/imagenet/nips/cam/samples/c036b20afde859b7.png\n",
      "335\n",
      "/data/gq/data/imagenet/nips/cam/samples/59204d6bb0c234eb.png\n",
      "336\n",
      "/data/gq/data/imagenet/nips/cam/samples/5ec826683757ffae.png\n",
      "337\n",
      "/data/gq/data/imagenet/nips/cam/samples/fe193683db61ac2d.png\n",
      "338\n",
      "/data/gq/data/imagenet/nips/cam/samples/d740663eeccdcecd.png\n",
      "339\n",
      "/data/gq/data/imagenet/nips/cam/samples/493e327b171ab0c3.png\n",
      "340\n",
      "/data/gq/data/imagenet/nips/cam/samples/582663fe666aac9c.png\n",
      "341\n",
      "/data/gq/data/imagenet/nips/cam/samples/5d53f9bc389e98ad.png\n",
      "342\n",
      "/data/gq/data/imagenet/nips/cam/samples/2c54b60a2851b8ed.png\n",
      "343\n",
      "/data/gq/data/imagenet/nips/cam/samples/b7d9e1d8cf1d7912.png\n",
      "344\n",
      "/data/gq/data/imagenet/nips/cam/samples/393d40f3a6a79400.png\n",
      "345\n",
      "/data/gq/data/imagenet/nips/cam/samples/e1c702ed9842dd1c.png\n",
      "346\n",
      "/data/gq/data/imagenet/nips/cam/samples/55a2e48a87c16998.png\n",
      "347\n",
      "/data/gq/data/imagenet/nips/cam/samples/4b384c8247b56c0a.png\n",
      "348\n",
      "/data/gq/data/imagenet/nips/cam/samples/6ad1230d612d7eb7.png\n",
      "349\n",
      "/data/gq/data/imagenet/nips/cam/samples/35d67f3f70aeef92.png\n",
      "350\n",
      "/data/gq/data/imagenet/nips/cam/samples/d23fd2119c4f5dec.png\n",
      "351\n",
      "/data/gq/data/imagenet/nips/cam/samples/daa6404780b1af27.png\n",
      "352\n",
      "/data/gq/data/imagenet/nips/cam/samples/be5543dc68f0b970.png\n",
      "353\n",
      "/data/gq/data/imagenet/nips/cam/samples/8c609b06a60af060.png\n",
      "354\n",
      "/data/gq/data/imagenet/nips/cam/samples/4fc263d35a3ad3ee.png\n",
      "355\n",
      "/data/gq/data/imagenet/nips/cam/samples/ed3f9b6a081a4802.png\n",
      "356\n",
      "/data/gq/data/imagenet/nips/cam/samples/f5dffe28fc19b6e7.png\n",
      "357\n",
      "/data/gq/data/imagenet/nips/cam/samples/c43077b2283479be.png\n",
      "358\n",
      "/data/gq/data/imagenet/nips/cam/samples/5cf72b48fdf5e419.png\n",
      "359\n",
      "/data/gq/data/imagenet/nips/cam/samples/d7d5b34ea0a0ffcf.png\n",
      "360\n",
      "/data/gq/data/imagenet/nips/cam/samples/f6437ed4f1b8fe23.png\n",
      "361\n",
      "/data/gq/data/imagenet/nips/cam/samples/200285e90078210b.png\n",
      "362\n",
      "/data/gq/data/imagenet/nips/cam/samples/5c847b72d1e1713f.png\n",
      "363\n",
      "/data/gq/data/imagenet/nips/cam/samples/67c0339b1dfda5f6.png\n",
      "364\n",
      "/data/gq/data/imagenet/nips/cam/samples/5528f7330399485f.png\n",
      "365\n",
      "/data/gq/data/imagenet/nips/cam/samples/74b13710bcf4f7f3.png\n",
      "366\n",
      "/data/gq/data/imagenet/nips/cam/samples/01bdc0cfe670f708.png\n",
      "367\n",
      "/data/gq/data/imagenet/nips/cam/samples/abe9504895f6e8dd.png\n",
      "368\n",
      "/data/gq/data/imagenet/nips/cam/samples/f0dcd519b5499d48.png\n",
      "369\n",
      "/data/gq/data/imagenet/nips/cam/samples/d97c1f3f1c211d1a.png\n",
      "370\n",
      "/data/gq/data/imagenet/nips/cam/samples/5c8bcfa0dbb246ab.png\n",
      "371\n",
      "/data/gq/data/imagenet/nips/cam/samples/0d85e0103989c850.png\n",
      "372\n",
      "/data/gq/data/imagenet/nips/cam/samples/9455bd672cb9e4bd.png\n",
      "373\n",
      "/data/gq/data/imagenet/nips/cam/samples/a8dd9ba15f7b817b.png\n",
      "374\n",
      "/data/gq/data/imagenet/nips/cam/samples/7060ae82e5b96a77.png\n",
      "375\n",
      "/data/gq/data/imagenet/nips/cam/samples/2a1a60df9a58bb7c.png\n",
      "376\n",
      "/data/gq/data/imagenet/nips/cam/samples/4d008626b4b68665.png\n",
      "377\n",
      "/data/gq/data/imagenet/nips/cam/samples/7e0fb7f80ffa514b.png\n",
      "378\n",
      "/data/gq/data/imagenet/nips/cam/samples/f63d58b5af16091f.png\n",
      "379\n",
      "/data/gq/data/imagenet/nips/cam/samples/8c975de17f3247d1.png\n",
      "380\n",
      "/data/gq/data/imagenet/nips/cam/samples/3f48b1e74589d310.png\n",
      "381\n",
      "/data/gq/data/imagenet/nips/cam/samples/4053a6a3d0e63c01.png\n",
      "382\n",
      "/data/gq/data/imagenet/nips/cam/samples/8e89734ed940e222.png\n",
      "383\n",
      "/data/gq/data/imagenet/nips/cam/samples/4d1237ccbd9a5b4b.png\n",
      "384\n",
      "/data/gq/data/imagenet/nips/cam/samples/c5c9d17672ff88ce.png\n",
      "385\n",
      "/data/gq/data/imagenet/nips/cam/samples/446b24f903b488fc.png\n",
      "386\n",
      "/data/gq/data/imagenet/nips/cam/samples/99f175132cd1c6e2.png\n",
      "387\n",
      "/data/gq/data/imagenet/nips/cam/samples/45da32a1cf073a4f.png\n",
      "388\n",
      "/data/gq/data/imagenet/nips/cam/samples/84a5f6ee2af29208.png\n",
      "389\n",
      "/data/gq/data/imagenet/nips/cam/samples/5191cfba868056a5.png\n",
      "390\n",
      "/data/gq/data/imagenet/nips/cam/samples/a033832d9ff8913b.png\n",
      "391\n",
      "/data/gq/data/imagenet/nips/cam/samples/69788a29e7436808.png\n",
      "392\n",
      "/data/gq/data/imagenet/nips/cam/samples/1f71668ab3dbe81b.png\n",
      "393\n",
      "/data/gq/data/imagenet/nips/cam/samples/82b6f0bc71f5d0af.png\n",
      "394\n",
      "/data/gq/data/imagenet/nips/cam/samples/d25df1a8259d3fdf.png\n",
      "395\n",
      "/data/gq/data/imagenet/nips/cam/samples/54ff02d9dfbf8540.png\n",
      "396\n",
      "/data/gq/data/imagenet/nips/cam/samples/ab3fef142d031784.png\n",
      "397\n",
      "/data/gq/data/imagenet/nips/cam/samples/d05076189b7fd185.png\n",
      "398\n",
      "/data/gq/data/imagenet/nips/cam/samples/d2d6ae6e0b8a0c31.png\n",
      "399\n",
      "/data/gq/data/imagenet/nips/cam/samples/c25da85d5d62b000.png\n",
      "400\n",
      "/data/gq/data/imagenet/nips/cam/samples/3d6e530955c60759.png\n",
      "401\n",
      "/data/gq/data/imagenet/nips/cam/samples/217597258ac12258.png\n",
      "402\n",
      "/data/gq/data/imagenet/nips/cam/samples/e5f15610a22098bb.png\n",
      "403\n",
      "/data/gq/data/imagenet/nips/cam/samples/686ea4ec999364ff.png\n",
      "404\n",
      "/data/gq/data/imagenet/nips/cam/samples/7d4186ce0332245d.png\n",
      "405\n",
      "/data/gq/data/imagenet/nips/cam/samples/7b6cc934fda859fa.png\n",
      "406\n",
      "/data/gq/data/imagenet/nips/cam/samples/2ee4c1b2b9bcc6c8.png\n",
      "407\n",
      "/data/gq/data/imagenet/nips/cam/samples/77ac8bf95825dfcc.png\n",
      "408\n",
      "/data/gq/data/imagenet/nips/cam/samples/506b87b78daa499c.png\n",
      "409\n",
      "/data/gq/data/imagenet/nips/cam/samples/4063377442ea93d3.png\n",
      "410\n",
      "/data/gq/data/imagenet/nips/cam/samples/e0c0f412d78571dc.png\n",
      "411\n",
      "/data/gq/data/imagenet/nips/cam/samples/d7c1d1632cf0acc7.png\n",
      "412\n",
      "/data/gq/data/imagenet/nips/cam/samples/3e1e47f5af2a3f16.png\n",
      "413\n",
      "/data/gq/data/imagenet/nips/cam/samples/957529a2abaa0581.png\n",
      "414\n",
      "/data/gq/data/imagenet/nips/cam/samples/6a50fbe8723a6a4a.png\n",
      "415\n",
      "/data/gq/data/imagenet/nips/cam/samples/740981d161a38bad.png\n",
      "416\n",
      "/data/gq/data/imagenet/nips/cam/samples/54a6b2cd7f89220e.png\n",
      "417\n",
      "/data/gq/data/imagenet/nips/cam/samples/a482985ca1e77960.png\n",
      "418\n",
      "/data/gq/data/imagenet/nips/cam/samples/4fff343244f212cc.png\n",
      "419\n",
      "/data/gq/data/imagenet/nips/cam/samples/789417c091011f53.png\n",
      "420\n",
      "/data/gq/data/imagenet/nips/cam/samples/3df888fc3b1df464.png\n",
      "421\n",
      "/data/gq/data/imagenet/nips/cam/samples/d4c817db6be62b71.png\n",
      "422\n",
      "/data/gq/data/imagenet/nips/cam/samples/ab42aa5e9745c214.png\n",
      "423\n",
      "/data/gq/data/imagenet/nips/cam/samples/5a8d5bc9bf40e832.png\n",
      "424\n",
      "/data/gq/data/imagenet/nips/cam/samples/d9da4e5ef53d5e8b.png\n",
      "425\n",
      "/data/gq/data/imagenet/nips/cam/samples/c02ff39fe5832f4b.png\n",
      "426\n",
      "/data/gq/data/imagenet/nips/cam/samples/55e85d7b58024966.png\n",
      "427\n",
      "/data/gq/data/imagenet/nips/cam/samples/313ff0037b86260a.png\n",
      "428\n",
      "/data/gq/data/imagenet/nips/cam/samples/0b1d45bd9ab1064e.png\n",
      "429\n",
      "/data/gq/data/imagenet/nips/cam/samples/422d08407aeed1be.png\n",
      "430\n",
      "/data/gq/data/imagenet/nips/cam/samples/6c9f8901246faff2.png\n",
      "431\n",
      "/data/gq/data/imagenet/nips/cam/samples/796e23f8dbf9a7a2.png\n",
      "432\n",
      "/data/gq/data/imagenet/nips/cam/samples/38c6124f40b8d845.png\n",
      "433\n",
      "/data/gq/data/imagenet/nips/cam/samples/cfab8f880da31ad8.png\n",
      "434\n",
      "/data/gq/data/imagenet/nips/cam/samples/76a5715019fe11c7.png\n",
      "435\n",
      "/data/gq/data/imagenet/nips/cam/samples/c27e3bde18fba21b.png\n",
      "436\n",
      "/data/gq/data/imagenet/nips/cam/samples/5292f5b36a0789fa.png\n",
      "437\n",
      "/data/gq/data/imagenet/nips/cam/samples/37e7dc99bf2704c7.png\n",
      "438\n",
      "/data/gq/data/imagenet/nips/cam/samples/f963957ccfa82f6b.png\n",
      "439\n",
      "/data/gq/data/imagenet/nips/cam/samples/69a39406cb1d2ce5.png\n",
      "440\n",
      "/data/gq/data/imagenet/nips/cam/samples/83d35591dfff99ac.png\n",
      "441\n",
      "/data/gq/data/imagenet/nips/cam/samples/d158837db31ed892.png\n",
      "442\n",
      "/data/gq/data/imagenet/nips/cam/samples/dad40e355e4e8e96.png\n",
      "443\n",
      "/data/gq/data/imagenet/nips/cam/samples/629138193e021cdf.png\n",
      "444\n",
      "/data/gq/data/imagenet/nips/cam/samples/f24817d66024dfb6.png\n",
      "445\n",
      "/data/gq/data/imagenet/nips/cam/samples/19935b1c0a4d305d.png\n",
      "446\n",
      "/data/gq/data/imagenet/nips/cam/samples/e99ceff3e420ef95.png\n",
      "447\n",
      "/data/gq/data/imagenet/nips/cam/samples/22712d0324d43ef2.png\n",
      "448\n",
      "/data/gq/data/imagenet/nips/cam/samples/a4f718e554dd18dd.png\n",
      "449\n",
      "/data/gq/data/imagenet/nips/cam/samples/65b8c8b065069802.png\n",
      "450\n",
      "/data/gq/data/imagenet/nips/cam/samples/05817a675e7506d1.png\n",
      "451\n",
      "/data/gq/data/imagenet/nips/cam/samples/3eded0a8d5f16059.png\n",
      "452\n",
      "/data/gq/data/imagenet/nips/cam/samples/e6e677a28e3bd6d7.png\n",
      "453\n",
      "/data/gq/data/imagenet/nips/cam/samples/659ca4ac6cc57e89.png\n",
      "454\n",
      "/data/gq/data/imagenet/nips/cam/samples/7a51c260ca0e83e7.png\n",
      "455\n",
      "/data/gq/data/imagenet/nips/cam/samples/7f842d0c1e747334.png\n",
      "456\n",
      "/data/gq/data/imagenet/nips/cam/samples/328d99215b19c8c7.png\n",
      "457\n",
      "/data/gq/data/imagenet/nips/cam/samples/4f553b721705d008.png\n",
      "458\n",
      "/data/gq/data/imagenet/nips/cam/samples/6de6432b0f23ae75.png\n",
      "459\n",
      "/data/gq/data/imagenet/nips/cam/samples/fae551840c1690fa.png\n",
      "460\n",
      "/data/gq/data/imagenet/nips/cam/samples/868af4a2e614f5ac.png\n",
      "461\n",
      "/data/gq/data/imagenet/nips/cam/samples/83896b9fb7e9c2f8.png\n",
      "462\n",
      "/data/gq/data/imagenet/nips/cam/samples/10db986bad48a9d5.png\n",
      "463\n",
      "/data/gq/data/imagenet/nips/cam/samples/f43fbfe8a9ea876c.png\n",
      "464\n",
      "/data/gq/data/imagenet/nips/cam/samples/2e541180b2323a5d.png\n",
      "465\n",
      "/data/gq/data/imagenet/nips/cam/samples/c3cf76709c87255b.png\n",
      "466\n",
      "/data/gq/data/imagenet/nips/cam/samples/8749fd2540a0cb01.png\n",
      "467\n",
      "/data/gq/data/imagenet/nips/cam/samples/1a95932427129cda.png\n",
      "468\n",
      "/data/gq/data/imagenet/nips/cam/samples/9d55997552acf0de.png\n",
      "469\n",
      "/data/gq/data/imagenet/nips/cam/samples/a97274c7e80a1764.png\n",
      "470\n",
      "/data/gq/data/imagenet/nips/cam/samples/d8b0101e2459882a.png\n",
      "471\n",
      "/data/gq/data/imagenet/nips/cam/samples/820ae900a943d605.png\n",
      "472\n",
      "/data/gq/data/imagenet/nips/cam/samples/408bae58c26a8076.png\n",
      "473\n",
      "/data/gq/data/imagenet/nips/cam/samples/a3c4dd88edacb575.png\n",
      "474\n",
      "/data/gq/data/imagenet/nips/cam/samples/0d29832e5da60f5f.png\n",
      "475\n",
      "/data/gq/data/imagenet/nips/cam/samples/8f9c1e4fd9f4cb2e.png\n",
      "476\n",
      "/data/gq/data/imagenet/nips/cam/samples/634d7f18d098cccb.png\n",
      "477\n",
      "/data/gq/data/imagenet/nips/cam/samples/024f73e53c3c1f1d.png\n",
      "478\n",
      "/data/gq/data/imagenet/nips/cam/samples/30e132285c2e960f.png\n",
      "479\n",
      "/data/gq/data/imagenet/nips/cam/samples/1733cbc68a2ae05d.png\n",
      "480\n",
      "/data/gq/data/imagenet/nips/cam/samples/134bfd93a04b88b2.png\n",
      "481\n",
      "/data/gq/data/imagenet/nips/cam/samples/c6b5f6c1d79dffc6.png\n",
      "482\n",
      "/data/gq/data/imagenet/nips/cam/samples/e8c6f75ad26bae84.png\n",
      "483\n",
      "/data/gq/data/imagenet/nips/cam/samples/b239b5b3e1642f3b.png\n",
      "484\n",
      "/data/gq/data/imagenet/nips/cam/samples/30b62313af2b5d74.png\n",
      "485\n",
      "/data/gq/data/imagenet/nips/cam/samples/66aa56675136bbab.png\n",
      "486\n",
      "/data/gq/data/imagenet/nips/cam/samples/11c53fe6feb856c6.png\n",
      "487\n",
      "/data/gq/data/imagenet/nips/cam/samples/6cc289dc7a8fce86.png\n",
      "488\n",
      "/data/gq/data/imagenet/nips/cam/samples/47b087263b33728b.png\n",
      "489\n",
      "/data/gq/data/imagenet/nips/cam/samples/c777da68bec01dcd.png\n",
      "490\n",
      "/data/gq/data/imagenet/nips/cam/samples/1b546695167d3f6e.png\n",
      "491\n",
      "/data/gq/data/imagenet/nips/cam/samples/05437214d1ba9580.png\n",
      "492\n",
      "/data/gq/data/imagenet/nips/cam/samples/3b32eca218ed3dbe.png\n",
      "493\n",
      "/data/gq/data/imagenet/nips/cam/samples/542c07e8bf8e283c.png\n",
      "494\n",
      "/data/gq/data/imagenet/nips/cam/samples/7a291389e67a8a07.png\n",
      "495\n",
      "/data/gq/data/imagenet/nips/cam/samples/1be47d60e0156bbb.png\n",
      "496\n",
      "/data/gq/data/imagenet/nips/cam/samples/0e83f990a04ed67d.png\n",
      "497\n",
      "/data/gq/data/imagenet/nips/cam/samples/5dbfff56258cf9e6.png\n",
      "498\n",
      "/data/gq/data/imagenet/nips/cam/samples/7700d0ba053dc4bd.png\n",
      "499\n",
      "/data/gq/data/imagenet/nips/cam/samples/4a1a40a116088962.png\n",
      "500\n",
      "/data/gq/data/imagenet/nips/cam/samples/c42c88890b5fc86d.png\n",
      "501\n",
      "/data/gq/data/imagenet/nips/cam/samples/9c0e25e2f72438e8.png\n",
      "502\n",
      "/data/gq/data/imagenet/nips/cam/samples/1f3f949ccbc81c93.png\n",
      "503\n",
      "/data/gq/data/imagenet/nips/cam/samples/a8fe76c687b00e33.png\n",
      "504\n",
      "/data/gq/data/imagenet/nips/cam/samples/565c67fd230f18cc.png\n",
      "505\n",
      "/data/gq/data/imagenet/nips/cam/samples/a28beac14b9037da.png\n",
      "506\n",
      "/data/gq/data/imagenet/nips/cam/samples/19b5bea9a7608a92.png\n",
      "507\n",
      "/data/gq/data/imagenet/nips/cam/samples/84640859ee739095.png\n",
      "508\n",
      "/data/gq/data/imagenet/nips/cam/samples/81a7637c67f4f777.png\n",
      "509\n",
      "/data/gq/data/imagenet/nips/cam/samples/97151fe7a0a6e2e3.png\n",
      "510\n",
      "/data/gq/data/imagenet/nips/cam/samples/558a7b66b78ba65b.png\n",
      "511\n",
      "/data/gq/data/imagenet/nips/cam/samples/73ee2cc19ef92e50.png\n",
      "512\n",
      "/data/gq/data/imagenet/nips/cam/samples/0546b47c13f154d3.png\n",
      "513\n",
      "/data/gq/data/imagenet/nips/cam/samples/823f8eae0df2d5c1.png\n",
      "514\n",
      "/data/gq/data/imagenet/nips/cam/samples/c179282bd977c6e0.png\n",
      "515\n",
      "/data/gq/data/imagenet/nips/cam/samples/1461ed9402248ddc.png\n",
      "516\n",
      "/data/gq/data/imagenet/nips/cam/samples/694e7617a4878041.png\n",
      "517\n",
      "/data/gq/data/imagenet/nips/cam/samples/7506caf0a49c3951.png\n",
      "518\n",
      "/data/gq/data/imagenet/nips/cam/samples/c135337ca7a575ae.png\n",
      "519\n",
      "/data/gq/data/imagenet/nips/cam/samples/e89d48768917f563.png\n",
      "520\n",
      "/data/gq/data/imagenet/nips/cam/samples/96fcb76927274db6.png\n",
      "521\n",
      "/data/gq/data/imagenet/nips/cam/samples/d9f624188d16fe93.png\n",
      "522\n",
      "/data/gq/data/imagenet/nips/cam/samples/515c6586db87bbd8.png\n",
      "523\n",
      "/data/gq/data/imagenet/nips/cam/samples/1e4bb9fd37654da6.png\n",
      "524\n",
      "/data/gq/data/imagenet/nips/cam/samples/4dc360d125c9238c.png\n",
      "525\n",
      "/data/gq/data/imagenet/nips/cam/samples/696f0f6bea562bf8.png\n",
      "526\n",
      "/data/gq/data/imagenet/nips/cam/samples/6374e7e35ad90f50.png\n",
      "527\n",
      "/data/gq/data/imagenet/nips/cam/samples/f2bfa7a95e787fe1.png\n",
      "528\n",
      "/data/gq/data/imagenet/nips/cam/samples/4bb12984b41d0834.png\n",
      "529\n",
      "/data/gq/data/imagenet/nips/cam/samples/efeabdd8a05e91f8.png\n",
      "530\n",
      "/data/gq/data/imagenet/nips/cam/samples/e7cafac174e90143.png\n",
      "531\n",
      "/data/gq/data/imagenet/nips/cam/samples/73728c249317ccb9.png\n",
      "532\n",
      "/data/gq/data/imagenet/nips/cam/samples/1f4227ce24232867.png\n",
      "533\n",
      "/data/gq/data/imagenet/nips/cam/samples/d47c9aabecda0e12.png\n",
      "534\n",
      "/data/gq/data/imagenet/nips/cam/samples/4f9f0b75f5b04524.png\n",
      "535\n",
      "/data/gq/data/imagenet/nips/cam/samples/e3a740861f12f49e.png\n",
      "536\n",
      "/data/gq/data/imagenet/nips/cam/samples/00c3cd597f1ee96f.png\n",
      "537\n",
      "/data/gq/data/imagenet/nips/cam/samples/b0619a61cf135f5e.png\n",
      "538\n",
      "/data/gq/data/imagenet/nips/cam/samples/3d75d9676ad6361c.png\n",
      "539\n",
      "/data/gq/data/imagenet/nips/cam/samples/92c73d668e2cd3ce.png\n",
      "540\n",
      "/data/gq/data/imagenet/nips/cam/samples/1e33aa336b89dcff.png\n",
      "541\n",
      "/data/gq/data/imagenet/nips/cam/samples/4cd90a6459ce9571.png\n",
      "542\n",
      "/data/gq/data/imagenet/nips/cam/samples/65251969959ce0e6.png\n",
      "543\n",
      "/data/gq/data/imagenet/nips/cam/samples/c663670c06c06ea4.png\n",
      "544\n",
      "/data/gq/data/imagenet/nips/cam/samples/da4f4d6944d93ae0.png\n",
      "545\n",
      "/data/gq/data/imagenet/nips/cam/samples/890fdaf4e1892e00.png\n",
      "546\n",
      "/data/gq/data/imagenet/nips/cam/samples/30b922dbfdbffd11.png\n",
      "547\n",
      "/data/gq/data/imagenet/nips/cam/samples/a8631b077e74f7aa.png\n",
      "548\n",
      "/data/gq/data/imagenet/nips/cam/samples/69854b68476d5068.png\n",
      "549\n",
      "/data/gq/data/imagenet/nips/cam/samples/604b54a3b7424d9b.png\n",
      "550\n",
      "/data/gq/data/imagenet/nips/cam/samples/6efed50f84ec5e01.png\n",
      "551\n",
      "/data/gq/data/imagenet/nips/cam/samples/526f322d78bd5b44.png\n",
      "552\n",
      "/data/gq/data/imagenet/nips/cam/samples/6e840c209f5733d5.png\n",
      "553\n",
      "/data/gq/data/imagenet/nips/cam/samples/405dd60729a8c18d.png\n",
      "554\n",
      "/data/gq/data/imagenet/nips/cam/samples/9f3afb58c061c290.png\n",
      "555\n",
      "/data/gq/data/imagenet/nips/cam/samples/70b3b833463d20b9.png\n",
      "556\n",
      "/data/gq/data/imagenet/nips/cam/samples/d531a31add433f46.png\n",
      "557\n",
      "/data/gq/data/imagenet/nips/cam/samples/8e3324c208eb9a3b.png\n",
      "558\n",
      "/data/gq/data/imagenet/nips/cam/samples/346c5575b60194c3.png\n",
      "559\n",
      "/data/gq/data/imagenet/nips/cam/samples/cc283b8f7f46fbf0.png\n",
      "560\n",
      "/data/gq/data/imagenet/nips/cam/samples/5c4eec952ca114a1.png\n",
      "561\n",
      "/data/gq/data/imagenet/nips/cam/samples/cb71a056a8e05bb2.png\n",
      "562\n",
      "/data/gq/data/imagenet/nips/cam/samples/d3551db0b83c8fc0.png\n",
      "563\n",
      "/data/gq/data/imagenet/nips/cam/samples/55599050147071cc.png\n",
      "564\n",
      "/data/gq/data/imagenet/nips/cam/samples/cc8d850717026796.png\n",
      "565\n",
      "/data/gq/data/imagenet/nips/cam/samples/a84ead15406596ce.png\n",
      "566\n",
      "/data/gq/data/imagenet/nips/cam/samples/21fef4d9b3dce49a.png\n",
      "567\n",
      "/data/gq/data/imagenet/nips/cam/samples/c5f5e09f4f5fd41a.png\n",
      "568\n",
      "/data/gq/data/imagenet/nips/cam/samples/9fe19d5c6dab83a3.png\n",
      "569\n",
      "/data/gq/data/imagenet/nips/cam/samples/51b390bb124a6d9d.png\n",
      "570\n",
      "/data/gq/data/imagenet/nips/cam/samples/12fb008451be82d4.png\n",
      "571\n",
      "/data/gq/data/imagenet/nips/cam/samples/411c5d79017077f4.png\n",
      "572\n",
      "/data/gq/data/imagenet/nips/cam/samples/e8c99e0220ab46d2.png\n",
      "573\n",
      "/data/gq/data/imagenet/nips/cam/samples/ff5182599937c1ec.png\n",
      "574\n",
      "/data/gq/data/imagenet/nips/cam/samples/4ca02fd28a5e9703.png\n",
      "575\n",
      "/data/gq/data/imagenet/nips/cam/samples/53211f8a1b131de6.png\n",
      "576\n",
      "/data/gq/data/imagenet/nips/cam/samples/c83cfca4bc9dd3c7.png\n",
      "577\n",
      "/data/gq/data/imagenet/nips/cam/samples/602f2c3749d6021e.png\n",
      "578\n",
      "/data/gq/data/imagenet/nips/cam/samples/b5548ecffa20aac8.png\n",
      "579\n",
      "/data/gq/data/imagenet/nips/cam/samples/2200794c59b1808e.png\n",
      "580\n",
      "/data/gq/data/imagenet/nips/cam/samples/23f9d18d531eb148.png\n",
      "581\n",
      "/data/gq/data/imagenet/nips/cam/samples/04cb9de291399d15.png\n",
      "582\n",
      "/data/gq/data/imagenet/nips/cam/samples/9ab953cce5c7f879.png\n",
      "583\n",
      "/data/gq/data/imagenet/nips/cam/samples/692016122b9e07a6.png\n",
      "584\n",
      "/data/gq/data/imagenet/nips/cam/samples/89f48bcf97aa6600.png\n",
      "585\n",
      "/data/gq/data/imagenet/nips/cam/samples/a64ae1acd9d09a87.png\n",
      "586\n",
      "/data/gq/data/imagenet/nips/cam/samples/619a9d0eb2acdd82.png\n",
      "587\n",
      "/data/gq/data/imagenet/nips/cam/samples/828ade8df2d14c45.png\n",
      "588\n",
      "/data/gq/data/imagenet/nips/cam/samples/fff35cdcce3cde43.png\n",
      "589\n",
      "/data/gq/data/imagenet/nips/cam/samples/b0e0e06e647b478f.png\n",
      "590\n",
      "/data/gq/data/imagenet/nips/cam/samples/114c98c078c5aab0.png\n",
      "591\n",
      "/data/gq/data/imagenet/nips/cam/samples/b48febf2b989205b.png\n",
      "592\n",
      "/data/gq/data/imagenet/nips/cam/samples/89d60f53d478c4f7.png\n",
      "593\n",
      "/data/gq/data/imagenet/nips/cam/samples/5d1df4748743d42e.png\n",
      "594\n",
      "/data/gq/data/imagenet/nips/cam/samples/60ed157b21d49c4c.png\n",
      "595\n",
      "/data/gq/data/imagenet/nips/cam/samples/16bbe588e0ecc6ab.png\n",
      "596\n",
      "/data/gq/data/imagenet/nips/cam/samples/d46216d31908163e.png\n",
      "597\n",
      "/data/gq/data/imagenet/nips/cam/samples/0ceee9a38409e30c.png\n",
      "598\n",
      "/data/gq/data/imagenet/nips/cam/samples/1e77361718213a43.png\n",
      "599\n",
      "/data/gq/data/imagenet/nips/cam/samples/172f992e1a0ebbc3.png\n",
      "600\n",
      "/data/gq/data/imagenet/nips/cam/samples/74355a8c878b6814.png\n",
      "601\n",
      "/data/gq/data/imagenet/nips/cam/samples/72d85232abd98067.png\n",
      "602\n",
      "/data/gq/data/imagenet/nips/cam/samples/67967c9db11151e0.png\n",
      "603\n",
      "/data/gq/data/imagenet/nips/cam/samples/a777db736ecdfb65.png\n",
      "604\n",
      "/data/gq/data/imagenet/nips/cam/samples/77c72d0a01e1af70.png\n",
      "605\n",
      "/data/gq/data/imagenet/nips/cam/samples/e3c3f8889ac99aec.png\n",
      "606\n",
      "/data/gq/data/imagenet/nips/cam/samples/9f55ac35ce9703e5.png\n",
      "607\n",
      "/data/gq/data/imagenet/nips/cam/samples/4227a6e105cc0588.png\n",
      "608\n",
      "/data/gq/data/imagenet/nips/cam/samples/c84cbc2c05227bee.png\n",
      "609\n",
      "/data/gq/data/imagenet/nips/cam/samples/e19a59ad09d18497.png\n",
      "610\n",
      "/data/gq/data/imagenet/nips/cam/samples/335e604bbe3eec78.png\n",
      "611\n",
      "/data/gq/data/imagenet/nips/cam/samples/5973419efd52f783.png\n",
      "612\n",
      "/data/gq/data/imagenet/nips/cam/samples/f5a2cf5c66d313fa.png\n",
      "613\n",
      "/data/gq/data/imagenet/nips/cam/samples/51d1c77f80467b59.png\n",
      "614\n",
      "/data/gq/data/imagenet/nips/cam/samples/26aa2e6ee43387e7.png\n",
      "615\n",
      "/data/gq/data/imagenet/nips/cam/samples/a6535c039bfeba2c.png\n",
      "616\n",
      "/data/gq/data/imagenet/nips/cam/samples/b6c6a5b7829fbc9b.png\n",
      "617\n",
      "/data/gq/data/imagenet/nips/cam/samples/fe92a88132b5d67b.png\n",
      "618\n",
      "/data/gq/data/imagenet/nips/cam/samples/fb1efda0b27d5289.png\n",
      "619\n",
      "/data/gq/data/imagenet/nips/cam/samples/ed9b2813b9245e52.png\n",
      "620\n",
      "/data/gq/data/imagenet/nips/cam/samples/631b6820e91a9e3e.png\n",
      "621\n",
      "/data/gq/data/imagenet/nips/cam/samples/d6d192c5786f29f5.png\n",
      "622\n",
      "/data/gq/data/imagenet/nips/cam/samples/5f3ea3c6b683fb57.png\n",
      "623\n",
      "/data/gq/data/imagenet/nips/cam/samples/53c478ffc8ddb967.png\n",
      "624\n",
      "/data/gq/data/imagenet/nips/cam/samples/ef0e34b8ccb6d42f.png\n",
      "625\n",
      "/data/gq/data/imagenet/nips/cam/samples/0aebe24fc257286e.png\n",
      "626\n",
      "/data/gq/data/imagenet/nips/cam/samples/f7947af6545be760.png\n",
      "627\n",
      "/data/gq/data/imagenet/nips/cam/samples/a92babc0a6436d3b.png\n",
      "628\n",
      "/data/gq/data/imagenet/nips/cam/samples/8c5b5bc0f39e2e06.png\n",
      "629\n",
      "/data/gq/data/imagenet/nips/cam/samples/eb8ce5ba5c47e344.png\n",
      "630\n",
      "/data/gq/data/imagenet/nips/cam/samples/8d86fae18afef4e0.png\n",
      "631\n",
      "/data/gq/data/imagenet/nips/cam/samples/9d5ef11ec55123e5.png\n",
      "632\n",
      "/data/gq/data/imagenet/nips/cam/samples/89119361e9d9e02d.png\n",
      "633\n",
      "/data/gq/data/imagenet/nips/cam/samples/fd26c4733822dfcc.png\n",
      "634\n",
      "/data/gq/data/imagenet/nips/cam/samples/068c5d66662a837a.png\n",
      "635\n",
      "/data/gq/data/imagenet/nips/cam/samples/7a11ae4c1f5e790c.png\n",
      "636\n",
      "/data/gq/data/imagenet/nips/cam/samples/90f5385a77a49f77.png\n",
      "637\n",
      "/data/gq/data/imagenet/nips/cam/samples/d386396825739960.png\n",
      "638\n",
      "/data/gq/data/imagenet/nips/cam/samples/fafbad0b3093a886.png\n",
      "639\n",
      "/data/gq/data/imagenet/nips/cam/samples/04546cc5e537d7cd.png\n",
      "640\n",
      "/data/gq/data/imagenet/nips/cam/samples/b1e69e9c3d740f4c.png\n",
      "641\n",
      "/data/gq/data/imagenet/nips/cam/samples/5d23b04cc45bc37b.png\n",
      "642\n",
      "/data/gq/data/imagenet/nips/cam/samples/78059d1afd7b9fea.png\n",
      "643\n",
      "/data/gq/data/imagenet/nips/cam/samples/4edeacef9fb8ec90.png\n",
      "644\n",
      "/data/gq/data/imagenet/nips/cam/samples/fccab516c111d524.png\n",
      "645\n",
      "/data/gq/data/imagenet/nips/cam/samples/81804435ad51df95.png\n",
      "646\n",
      "/data/gq/data/imagenet/nips/cam/samples/5adb3d985cf217a9.png\n",
      "647\n",
      "/data/gq/data/imagenet/nips/cam/samples/5b974695c09ad165.png\n",
      "648\n",
      "/data/gq/data/imagenet/nips/cam/samples/58bbaa0c5ab520d5.png\n",
      "649\n",
      "/data/gq/data/imagenet/nips/cam/samples/150249123e81930d.png\n",
      "650\n",
      "/data/gq/data/imagenet/nips/cam/samples/184a160b32ff4c72.png\n",
      "651\n",
      "/data/gq/data/imagenet/nips/cam/samples/611f453c4bb616b9.png\n",
      "652\n",
      "/data/gq/data/imagenet/nips/cam/samples/e9811aebe8bed6e5.png\n",
      "653\n",
      "/data/gq/data/imagenet/nips/cam/samples/49b1adfeb8ffcabd.png\n",
      "654\n",
      "/data/gq/data/imagenet/nips/cam/samples/61ed2594a0524631.png\n",
      "655\n",
      "/data/gq/data/imagenet/nips/cam/samples/1a94dc47fdd84a95.png\n",
      "656\n",
      "/data/gq/data/imagenet/nips/cam/samples/795f5aef9bef8134.png\n",
      "657\n",
      "/data/gq/data/imagenet/nips/cam/samples/58f0fd17c4a0e25a.png\n",
      "658\n",
      "/data/gq/data/imagenet/nips/cam/samples/7ca714cdcd5d36d9.png\n",
      "659\n",
      "/data/gq/data/imagenet/nips/cam/samples/303781188f1b3b27.png\n",
      "660\n",
      "/data/gq/data/imagenet/nips/cam/samples/79fa9855119ffeea.png\n",
      "661\n",
      "/data/gq/data/imagenet/nips/cam/samples/f9937696f421f4e4.png\n",
      "662\n",
      "/data/gq/data/imagenet/nips/cam/samples/fe94909a2fad4ffe.png\n",
      "663\n",
      "/data/gq/data/imagenet/nips/cam/samples/0212aa8aa912ee45.png\n",
      "664\n",
      "/data/gq/data/imagenet/nips/cam/samples/fe1314dd6f75551d.png\n",
      "665\n",
      "/data/gq/data/imagenet/nips/cam/samples/1c2e9fe8b0b2fdf2.png\n",
      "666\n",
      "/data/gq/data/imagenet/nips/cam/samples/7f045354f4577c16.png\n",
      "667\n",
      "/data/gq/data/imagenet/nips/cam/samples/9311a098cfb4b946.png\n",
      "668\n",
      "/data/gq/data/imagenet/nips/cam/samples/9d4674c86096e4bd.png\n",
      "669\n",
      "/data/gq/data/imagenet/nips/cam/samples/10bc8784a5eb8843.png\n",
      "670\n",
      "/data/gq/data/imagenet/nips/cam/samples/435137d9d4f4125e.png\n",
      "671\n",
      "/data/gq/data/imagenet/nips/cam/samples/4146a745f9b2f3cb.png\n",
      "672\n",
      "/data/gq/data/imagenet/nips/cam/samples/05cac1419419ce29.png\n",
      "673\n",
      "/data/gq/data/imagenet/nips/cam/samples/65c1808390bd18c5.png\n",
      "674\n",
      "/data/gq/data/imagenet/nips/cam/samples/bba5c56cc3eb07c9.png\n",
      "675\n",
      "/data/gq/data/imagenet/nips/cam/samples/d2cc2eabfc7bf54a.png\n",
      "676\n",
      "/data/gq/data/imagenet/nips/cam/samples/4b52fd42977215b9.png\n",
      "677\n",
      "/data/gq/data/imagenet/nips/cam/samples/1685d066f8070081.png\n",
      "678\n",
      "/data/gq/data/imagenet/nips/cam/samples/cd2d2889ef7ac51c.png\n",
      "679\n",
      "/data/gq/data/imagenet/nips/cam/samples/ebdfdcba5dc3b72a.png\n",
      "680\n",
      "/data/gq/data/imagenet/nips/cam/samples/ca50e3535eb6396c.png\n",
      "681\n",
      "/data/gq/data/imagenet/nips/cam/samples/e8d5809ee6888f8f.png\n",
      "682\n",
      "/data/gq/data/imagenet/nips/cam/samples/1e408a8d1e2cdc74.png\n",
      "683\n",
      "/data/gq/data/imagenet/nips/cam/samples/d7d8fc1442a82a8e.png\n",
      "684\n",
      "/data/gq/data/imagenet/nips/cam/samples/c35cd0d5673ec1db.png\n",
      "685\n",
      "/data/gq/data/imagenet/nips/cam/samples/3bd1ba0432603b28.png\n",
      "686\n",
      "/data/gq/data/imagenet/nips/cam/samples/0ed355357757528d.png\n",
      "687\n",
      "/data/gq/data/imagenet/nips/cam/samples/b3ba6f0352a29b2d.png\n",
      "688\n",
      "/data/gq/data/imagenet/nips/cam/samples/87937b805302f958.png\n",
      "689\n",
      "/data/gq/data/imagenet/nips/cam/samples/a8fca010774a1187.png\n",
      "690\n",
      "/data/gq/data/imagenet/nips/cam/samples/39f82c728c956125.png\n",
      "691\n",
      "/data/gq/data/imagenet/nips/cam/samples/beb3e55c385feb12.png\n",
      "692\n",
      "/data/gq/data/imagenet/nips/cam/samples/b648e8dfcb4fbc99.png\n",
      "693\n",
      "/data/gq/data/imagenet/nips/cam/samples/d7984e6e1a51b3c4.png\n",
      "694\n",
      "/data/gq/data/imagenet/nips/cam/samples/bb03be3702584eeb.png\n",
      "695\n",
      "/data/gq/data/imagenet/nips/cam/samples/a92ab9e5fb9c5d64.png\n",
      "696\n",
      "/data/gq/data/imagenet/nips/cam/samples/c3f452167c39302f.png\n",
      "697\n",
      "/data/gq/data/imagenet/nips/cam/samples/d0029b3675b792ae.png\n",
      "698\n",
      "/data/gq/data/imagenet/nips/cam/samples/fecd59b8de8ae6f7.png\n",
      "699\n",
      "/data/gq/data/imagenet/nips/cam/samples/af2ac1705dc19a5f.png\n",
      "700\n",
      "/data/gq/data/imagenet/nips/cam/samples/74b2e35cda75fe27.png\n",
      "701\n",
      "/data/gq/data/imagenet/nips/cam/samples/6896a8b78f404dc8.png\n",
      "702\n",
      "/data/gq/data/imagenet/nips/cam/samples/dd4d033a9a45552d.png\n",
      "703\n",
      "/data/gq/data/imagenet/nips/cam/samples/3e8bf1eee7083f6e.png\n",
      "704\n",
      "/data/gq/data/imagenet/nips/cam/samples/0707f3dfb7c29f5c.png\n",
      "705\n",
      "/data/gq/data/imagenet/nips/cam/samples/8d68931ba23fdeb7.png\n",
      "706\n",
      "/data/gq/data/imagenet/nips/cam/samples/b02b553998809e17.png\n",
      "707\n",
      "/data/gq/data/imagenet/nips/cam/samples/25f85aadcf248cc1.png\n",
      "708\n",
      "/data/gq/data/imagenet/nips/cam/samples/e9ecdf28dc1d5a85.png\n",
      "709\n",
      "/data/gq/data/imagenet/nips/cam/samples/13810fcac72f12ba.png\n",
      "710\n",
      "/data/gq/data/imagenet/nips/cam/samples/9aba31a4b2404aa5.png\n",
      "711\n",
      "/data/gq/data/imagenet/nips/cam/samples/93394c1f9c4c0053.png\n",
      "712\n",
      "/data/gq/data/imagenet/nips/cam/samples/a2de1f4f2c1021fa.png\n",
      "713\n",
      "/data/gq/data/imagenet/nips/cam/samples/6740e1e89b5bbab4.png\n",
      "714\n",
      "/data/gq/data/imagenet/nips/cam/samples/44aa69f642b86628.png\n",
      "715\n",
      "/data/gq/data/imagenet/nips/cam/samples/c3e9a84e039df3ce.png\n",
      "716\n",
      "/data/gq/data/imagenet/nips/cam/samples/bb6fcb4a52b4fc0f.png\n",
      "717\n",
      "/data/gq/data/imagenet/nips/cam/samples/e071bf346787d971.png\n",
      "718\n",
      "/data/gq/data/imagenet/nips/cam/samples/7069a117c92d27a4.png\n",
      "719\n",
      "/data/gq/data/imagenet/nips/cam/samples/67a52d9155241752.png\n",
      "720\n",
      "/data/gq/data/imagenet/nips/cam/samples/61131df39f19a4a0.png\n",
      "721\n",
      "/data/gq/data/imagenet/nips/cam/samples/8b7a5446dae48ac1.png\n",
      "722\n",
      "/data/gq/data/imagenet/nips/cam/samples/1b1ffd7000d0749f.png\n",
      "723\n",
      "/data/gq/data/imagenet/nips/cam/samples/afe045d68f1a60d0.png\n",
      "724\n",
      "/data/gq/data/imagenet/nips/cam/samples/715335d5ddfca1f2.png\n",
      "725\n",
      "/data/gq/data/imagenet/nips/cam/samples/f20911d36a287dce.png\n",
      "726\n",
      "/data/gq/data/imagenet/nips/cam/samples/7453471febf1db6f.png\n",
      "727\n",
      "/data/gq/data/imagenet/nips/cam/samples/d016b3204e7ca96e.png\n",
      "728\n",
      "/data/gq/data/imagenet/nips/cam/samples/d051e0bd46125123.png\n",
      "729\n",
      "/data/gq/data/imagenet/nips/cam/samples/8d90c523b27410a7.png\n",
      "730\n",
      "/data/gq/data/imagenet/nips/cam/samples/8094d4088a08cf09.png\n",
      "731\n",
      "/data/gq/data/imagenet/nips/cam/samples/592c7424f13b2d29.png\n",
      "732\n",
      "/data/gq/data/imagenet/nips/cam/samples/943274babd06a662.png\n",
      "733\n",
      "/data/gq/data/imagenet/nips/cam/samples/7b6e963025eaeb66.png\n",
      "734\n",
      "/data/gq/data/imagenet/nips/cam/samples/af543b5f19ed1b1d.png\n",
      "735\n",
      "/data/gq/data/imagenet/nips/cam/samples/707bce947d54bcd8.png\n",
      "736\n",
      "/data/gq/data/imagenet/nips/cam/samples/1484479b7630af0a.png\n",
      "737\n",
      "/data/gq/data/imagenet/nips/cam/samples/60566d5680497389.png\n",
      "738\n",
      "/data/gq/data/imagenet/nips/cam/samples/5b3a8c63e41802e7.png\n",
      "739\n",
      "/data/gq/data/imagenet/nips/cam/samples/a74f197288b10a0d.png\n",
      "740\n",
      "/data/gq/data/imagenet/nips/cam/samples/8bb7d10e97694eb5.png\n",
      "741\n",
      "/data/gq/data/imagenet/nips/cam/samples/b74c05ecff5f99d8.png\n",
      "742\n",
      "/data/gq/data/imagenet/nips/cam/samples/7c5ea6f89e6e2733.png\n",
      "743\n",
      "/data/gq/data/imagenet/nips/cam/samples/126175abfdcb1a21.png\n",
      "744\n",
      "/data/gq/data/imagenet/nips/cam/samples/1478a0fc99a988db.png\n",
      "745\n",
      "/data/gq/data/imagenet/nips/cam/samples/7e5c847bafc4d50c.png\n",
      "746\n",
      "/data/gq/data/imagenet/nips/cam/samples/9f6fe669276f04cf.png\n",
      "747\n",
      "/data/gq/data/imagenet/nips/cam/samples/014f0024918a7b6f.png\n",
      "748\n",
      "/data/gq/data/imagenet/nips/cam/samples/95185508805329aa.png\n",
      "749\n",
      "/data/gq/data/imagenet/nips/cam/samples/212476b1b58a0cfe.png\n",
      "750\n",
      "/data/gq/data/imagenet/nips/cam/samples/a414ccf5c51454e0.png\n",
      "751\n",
      "/data/gq/data/imagenet/nips/cam/samples/57e62606f02d0251.png\n",
      "752\n",
      "/data/gq/data/imagenet/nips/cam/samples/4f5464b7d4682441.png\n",
      "753\n",
      "/data/gq/data/imagenet/nips/cam/samples/059da9a174262427.png\n",
      "754\n",
      "/data/gq/data/imagenet/nips/cam/samples/02eb799d147d5f91.png\n",
      "755\n",
      "/data/gq/data/imagenet/nips/cam/samples/bd3617fcc985fe31.png\n",
      "756\n",
      "/data/gq/data/imagenet/nips/cam/samples/a920691cf2d50f79.png\n",
      "757\n",
      "/data/gq/data/imagenet/nips/cam/samples/4bdb561770b52424.png\n",
      "758\n",
      "/data/gq/data/imagenet/nips/cam/samples/2d95297e468bdf9b.png\n",
      "759\n",
      "/data/gq/data/imagenet/nips/cam/samples/7b71925e989ee1d8.png\n",
      "760\n",
      "/data/gq/data/imagenet/nips/cam/samples/001b5e6f1b89fd3b.png\n",
      "761\n",
      "/data/gq/data/imagenet/nips/cam/samples/f533740a8d4618ce.png\n",
      "762\n",
      "/data/gq/data/imagenet/nips/cam/samples/3302a8c24caf20f4.png\n",
      "763\n",
      "/data/gq/data/imagenet/nips/cam/samples/df58f94361c6d105.png\n",
      "764\n",
      "/data/gq/data/imagenet/nips/cam/samples/093402dc35f59027.png\n",
      "765\n",
      "/data/gq/data/imagenet/nips/cam/samples/348618ddbde3a39c.png\n",
      "766\n",
      "/data/gq/data/imagenet/nips/cam/samples/cbcb7444cc827812.png\n",
      "767\n",
      "/data/gq/data/imagenet/nips/cam/samples/4f722cab5573a5fb.png\n",
      "768\n",
      "/data/gq/data/imagenet/nips/cam/samples/4572c8986c28343b.png\n",
      "769\n",
      "/data/gq/data/imagenet/nips/cam/samples/33197fa6ae88508a.png\n",
      "770\n",
      "/data/gq/data/imagenet/nips/cam/samples/97917829607b6189.png\n",
      "771\n",
      "/data/gq/data/imagenet/nips/cam/samples/70db5a1689f89129.png\n",
      "772\n",
      "/data/gq/data/imagenet/nips/cam/samples/8a02b6196885c394.png\n",
      "773\n",
      "/data/gq/data/imagenet/nips/cam/samples/6afe58efa85756dc.png\n",
      "774\n",
      "/data/gq/data/imagenet/nips/cam/samples/dd722682a9f2b9dd.png\n",
      "775\n",
      "/data/gq/data/imagenet/nips/cam/samples/28652355cd12a1e7.png\n",
      "776\n",
      "/data/gq/data/imagenet/nips/cam/samples/e22a1c8dab22f256.png\n",
      "777\n",
      "/data/gq/data/imagenet/nips/cam/samples/d5d5f843f100328c.png\n",
      "778\n",
      "/data/gq/data/imagenet/nips/cam/samples/82e2334925339ef8.png\n",
      "779\n",
      "/data/gq/data/imagenet/nips/cam/samples/7278c2b63080f08c.png\n",
      "780\n",
      "/data/gq/data/imagenet/nips/cam/samples/d7de327bbf412965.png\n",
      "781\n",
      "/data/gq/data/imagenet/nips/cam/samples/01fa4be27dd11b5d.png\n",
      "782\n",
      "/data/gq/data/imagenet/nips/cam/samples/f08f34c258228251.png\n",
      "783\n",
      "/data/gq/data/imagenet/nips/cam/samples/412311ea17528b7c.png\n",
      "784\n",
      "/data/gq/data/imagenet/nips/cam/samples/cc43200264a62126.png\n",
      "785\n",
      "/data/gq/data/imagenet/nips/cam/samples/5c2d823a4d30e3d5.png\n",
      "786\n",
      "/data/gq/data/imagenet/nips/cam/samples/40a7f086461190f3.png\n",
      "787\n",
      "/data/gq/data/imagenet/nips/cam/samples/da4b3e38b069d735.png\n",
      "788\n",
      "/data/gq/data/imagenet/nips/cam/samples/01f824264783f58d.png\n",
      "789\n",
      "/data/gq/data/imagenet/nips/cam/samples/3f40eba168e5d385.png\n",
      "790\n",
      "/data/gq/data/imagenet/nips/cam/samples/e4941a341ace171a.png\n",
      "791\n",
      "/data/gq/data/imagenet/nips/cam/samples/839aa3d166b020cf.png\n",
      "792\n",
      "/data/gq/data/imagenet/nips/cam/samples/ed3cb7f5154ae02d.png\n",
      "793\n",
      "/data/gq/data/imagenet/nips/cam/samples/43fa89c17e628c06.png\n",
      "794\n",
      "/data/gq/data/imagenet/nips/cam/samples/2e9b377877f64b3d.png\n",
      "795\n",
      "/data/gq/data/imagenet/nips/cam/samples/87a2147620d5e1cb.png\n",
      "796\n",
      "/data/gq/data/imagenet/nips/cam/samples/c66310d8b709d6d5.png\n",
      "797\n",
      "/data/gq/data/imagenet/nips/cam/samples/21554e755b9706d2.png\n",
      "798\n",
      "/data/gq/data/imagenet/nips/cam/samples/398720b8f19d5b84.png\n",
      "799\n",
      "/data/gq/data/imagenet/nips/cam/samples/e37b556e8889d2ec.png\n",
      "800\n",
      "/data/gq/data/imagenet/nips/cam/samples/40f79488e3c2d6c4.png\n",
      "801\n",
      "/data/gq/data/imagenet/nips/cam/samples/b89dbfcc49dcf156.png\n",
      "802\n",
      "/data/gq/data/imagenet/nips/cam/samples/0134ba03294509a1.png\n",
      "803\n",
      "/data/gq/data/imagenet/nips/cam/samples/a7151de51c2f1d0b.png\n",
      "804\n",
      "/data/gq/data/imagenet/nips/cam/samples/5224fec9ba33b50d.png\n",
      "805\n",
      "/data/gq/data/imagenet/nips/cam/samples/ba4508962af69d90.png\n",
      "806\n",
      "/data/gq/data/imagenet/nips/cam/samples/76886996d4ab4614.png\n",
      "807\n",
      "/data/gq/data/imagenet/nips/cam/samples/64ed3f0e8a2dc320.png\n",
      "808\n",
      "/data/gq/data/imagenet/nips/cam/samples/6b27728f0f816dc6.png\n",
      "809\n",
      "/data/gq/data/imagenet/nips/cam/samples/90e11aa7c36c64f2.png\n",
      "810\n",
      "/data/gq/data/imagenet/nips/cam/samples/8805b0b20d808c49.png\n",
      "811\n",
      "/data/gq/data/imagenet/nips/cam/samples/446f75fdea0e1da0.png\n",
      "812\n",
      "/data/gq/data/imagenet/nips/cam/samples/73064ceb466612d5.png\n",
      "813\n",
      "/data/gq/data/imagenet/nips/cam/samples/2b741c5c635a7295.png\n",
      "814\n",
      "/data/gq/data/imagenet/nips/cam/samples/9a1c67f467b9beea.png\n",
      "815\n",
      "/data/gq/data/imagenet/nips/cam/samples/59e9bdbb7a3fc4ba.png\n",
      "816\n",
      "/data/gq/data/imagenet/nips/cam/samples/2f7d5ff922af55c4.png\n",
      "817\n",
      "/data/gq/data/imagenet/nips/cam/samples/c10f6e0689efbc1c.png\n",
      "818\n",
      "/data/gq/data/imagenet/nips/cam/samples/7d833ac8ab852bd2.png\n",
      "819\n",
      "/data/gq/data/imagenet/nips/cam/samples/76d7e2d1bf3a31fe.png\n",
      "820\n",
      "/data/gq/data/imagenet/nips/cam/samples/52d8515abbfaa8ac.png\n",
      "821\n",
      "/data/gq/data/imagenet/nips/cam/samples/be97d1e63c32043e.png\n",
      "822\n",
      "/data/gq/data/imagenet/nips/cam/samples/3cf4bb0637d0f182.png\n",
      "823\n",
      "/data/gq/data/imagenet/nips/cam/samples/eae13c52554a7783.png\n",
      "824\n",
      "/data/gq/data/imagenet/nips/cam/samples/af3736cca01a2d28.png\n",
      "825\n",
      "/data/gq/data/imagenet/nips/cam/samples/42e9b41ce96dbf0a.png\n",
      "826\n",
      "/data/gq/data/imagenet/nips/cam/samples/e570258f1bef4ade.png\n",
      "827\n",
      "/data/gq/data/imagenet/nips/cam/samples/95d1a6be6786190f.png\n",
      "828\n",
      "/data/gq/data/imagenet/nips/cam/samples/6bb6cf032c1286c5.png\n",
      "829\n",
      "/data/gq/data/imagenet/nips/cam/samples/ae78688b32986638.png\n",
      "830\n",
      "/data/gq/data/imagenet/nips/cam/samples/0d6463e9a7ef6185.png\n",
      "831\n",
      "/data/gq/data/imagenet/nips/cam/samples/01dd15caa1b2c7b4.png\n",
      "832\n",
      "/data/gq/data/imagenet/nips/cam/samples/8555611998ea426a.png\n",
      "833\n",
      "/data/gq/data/imagenet/nips/cam/samples/e95ef0aeeab7b496.png\n",
      "834\n",
      "/data/gq/data/imagenet/nips/cam/samples/7e4c41563370bed1.png\n",
      "835\n",
      "/data/gq/data/imagenet/nips/cam/samples/be9a3bea2989a0b4.png\n",
      "836\n",
      "/data/gq/data/imagenet/nips/cam/samples/ed786d792c4309a4.png\n",
      "837\n",
      "/data/gq/data/imagenet/nips/cam/samples/3228a465697fb2cf.png\n",
      "838\n",
      "/data/gq/data/imagenet/nips/cam/samples/1cc2caf8e5db27c3.png\n",
      "839\n",
      "/data/gq/data/imagenet/nips/cam/samples/641d03527848417f.png\n",
      "840\n",
      "/data/gq/data/imagenet/nips/cam/samples/cd40b0e46c9da574.png\n",
      "841\n",
      "/data/gq/data/imagenet/nips/cam/samples/03f90f7138f761e8.png\n",
      "842\n",
      "/data/gq/data/imagenet/nips/cam/samples/3e7b01ba495f15f9.png\n",
      "843\n",
      "/data/gq/data/imagenet/nips/cam/samples/2e854fca826e54b3.png\n",
      "844\n",
      "/data/gq/data/imagenet/nips/cam/samples/2efe4916e679e875.png\n",
      "845\n",
      "/data/gq/data/imagenet/nips/cam/samples/72ac2a5af79e26d5.png\n",
      "846\n",
      "/data/gq/data/imagenet/nips/cam/samples/a70b1cda0776cba6.png\n",
      "847\n",
      "/data/gq/data/imagenet/nips/cam/samples/721804d1d3a60206.png\n",
      "848\n",
      "/data/gq/data/imagenet/nips/cam/samples/df2cd1b82d5dec14.png\n",
      "849\n",
      "/data/gq/data/imagenet/nips/cam/samples/911aebf30626ce02.png\n",
      "850\n",
      "/data/gq/data/imagenet/nips/cam/samples/49c27b439d39a00c.png\n",
      "851\n",
      "/data/gq/data/imagenet/nips/cam/samples/0dffbfa7ba43cb90.png\n",
      "852\n",
      "/data/gq/data/imagenet/nips/cam/samples/49591319edeb6b3a.png\n",
      "853\n",
      "/data/gq/data/imagenet/nips/cam/samples/ac668c13ccfd4b79.png\n",
      "854\n",
      "/data/gq/data/imagenet/nips/cam/samples/ab8329c28d8538c3.png\n",
      "855\n",
      "/data/gq/data/imagenet/nips/cam/samples/4aeb33c9e565a201.png\n",
      "856\n",
      "/data/gq/data/imagenet/nips/cam/samples/e957c417fcd20c5b.png\n",
      "857\n",
      "/data/gq/data/imagenet/nips/cam/samples/225e06c2dfa68a62.png\n",
      "858\n",
      "/data/gq/data/imagenet/nips/cam/samples/1b57d7bbd673c771.png\n",
      "859\n",
      "/data/gq/data/imagenet/nips/cam/samples/d12aad0d18252b40.png\n",
      "860\n",
      "/data/gq/data/imagenet/nips/cam/samples/ae24c23192976a40.png\n",
      "861\n",
      "/data/gq/data/imagenet/nips/cam/samples/67a08d685abf7fb6.png\n",
      "862\n",
      "/data/gq/data/imagenet/nips/cam/samples/19d43f8204d3183d.png\n",
      "863\n",
      "/data/gq/data/imagenet/nips/cam/samples/d77af00930283f4b.png\n",
      "864\n",
      "/data/gq/data/imagenet/nips/cam/samples/d1a723656dc08b5e.png\n",
      "865\n",
      "/data/gq/data/imagenet/nips/cam/samples/8859efd46fab37ff.png\n",
      "866\n",
      "/data/gq/data/imagenet/nips/cam/samples/79a5625805a08253.png\n",
      "867\n",
      "/data/gq/data/imagenet/nips/cam/samples/9594ef7e0fc79ea8.png\n",
      "868\n",
      "/data/gq/data/imagenet/nips/cam/samples/5cd8864b6e35df82.png\n",
      "869\n",
      "/data/gq/data/imagenet/nips/cam/samples/d1709eec353a6f93.png\n",
      "870\n",
      "/data/gq/data/imagenet/nips/cam/samples/200735f93ea764f2.png\n",
      "871\n",
      "/data/gq/data/imagenet/nips/cam/samples/17f3b8a057bc01be.png\n",
      "872\n",
      "/data/gq/data/imagenet/nips/cam/samples/b19e2df06dbcccd9.png\n",
      "873\n",
      "/data/gq/data/imagenet/nips/cam/samples/76db169867bf2e9d.png\n",
      "874\n",
      "/data/gq/data/imagenet/nips/cam/samples/5d8085ae68e07d72.png\n",
      "875\n",
      "/data/gq/data/imagenet/nips/cam/samples/1ebff1b3c8de66de.png\n",
      "876\n",
      "/data/gq/data/imagenet/nips/cam/samples/7fd7ce3eb2bf9944.png\n",
      "877\n",
      "/data/gq/data/imagenet/nips/cam/samples/9c509bfb75167fb0.png\n",
      "878\n",
      "/data/gq/data/imagenet/nips/cam/samples/d741b583a123562b.png\n",
      "879\n",
      "/data/gq/data/imagenet/nips/cam/samples/17cfccd62451a233.png\n",
      "880\n",
      "/data/gq/data/imagenet/nips/cam/samples/137ab6ca314e9e35.png\n",
      "881\n",
      "/data/gq/data/imagenet/nips/cam/samples/f734e87286835196.png\n",
      "882\n",
      "/data/gq/data/imagenet/nips/cam/samples/588bd41c9aa5a81b.png\n",
      "883\n",
      "/data/gq/data/imagenet/nips/cam/samples/0db0952967f6faa6.png\n",
      "884\n",
      "/data/gq/data/imagenet/nips/cam/samples/5a0e21d54b9c4954.png\n",
      "885\n",
      "/data/gq/data/imagenet/nips/cam/samples/ad333e5d6953cbbf.png\n",
      "886\n",
      "/data/gq/data/imagenet/nips/cam/samples/5bdb8268eadf57d8.png\n",
      "887\n",
      "/data/gq/data/imagenet/nips/cam/samples/517dc655edeaf344.png\n",
      "888\n",
      "/data/gq/data/imagenet/nips/cam/samples/eab9755117160864.png\n",
      "889\n",
      "/data/gq/data/imagenet/nips/cam/samples/db6c6671a6924eba.png\n",
      "890\n",
      "/data/gq/data/imagenet/nips/cam/samples/6841e385fe79177f.png\n",
      "891\n",
      "/data/gq/data/imagenet/nips/cam/samples/1a7425e8f990e04a.png\n",
      "892\n",
      "/data/gq/data/imagenet/nips/cam/samples/510e5062fef4a993.png\n",
      "893\n",
      "/data/gq/data/imagenet/nips/cam/samples/dcb6b32cd80f2b1f.png\n",
      "894\n",
      "/data/gq/data/imagenet/nips/cam/samples/0f36316247c03427.png\n",
      "895\n",
      "/data/gq/data/imagenet/nips/cam/samples/70d812d368e3e828.png\n",
      "896\n",
      "/data/gq/data/imagenet/nips/cam/samples/2abcab3d77d4767e.png\n",
      "897\n",
      "/data/gq/data/imagenet/nips/cam/samples/556d8b457b94c285.png\n",
      "898\n",
      "/data/gq/data/imagenet/nips/cam/samples/ccbcaf10176e78e0.png\n",
      "899\n",
      "/data/gq/data/imagenet/nips/cam/samples/3c970c84b598f2d9.png\n",
      "900\n",
      "/data/gq/data/imagenet/nips/cam/samples/85e2eea48d912d31.png\n",
      "901\n",
      "/data/gq/data/imagenet/nips/cam/samples/0f9d8c86a9f38020.png\n",
      "902\n",
      "/data/gq/data/imagenet/nips/cam/samples/000b7d55b6184b08.png\n",
      "903\n",
      "/data/gq/data/imagenet/nips/cam/samples/6bff4ecb94f1f84e.png\n",
      "904\n",
      "/data/gq/data/imagenet/nips/cam/samples/0be391239ccba0f2.png\n",
      "905\n",
      "/data/gq/data/imagenet/nips/cam/samples/24312de5c34473c0.png\n",
      "906\n",
      "/data/gq/data/imagenet/nips/cam/samples/46a489dcff5471a4.png\n",
      "907\n",
      "/data/gq/data/imagenet/nips/cam/samples/4e34df87968bd882.png\n",
      "908\n",
      "/data/gq/data/imagenet/nips/cam/samples/080bec22a6b1d37d.png\n",
      "909\n",
      "/data/gq/data/imagenet/nips/cam/samples/864fffaf7a83b3f4.png\n",
      "910\n",
      "/data/gq/data/imagenet/nips/cam/samples/1d5361e858fe8462.png\n",
      "911\n",
      "/data/gq/data/imagenet/nips/cam/samples/06a0e36c443746b5.png\n",
      "912\n",
      "/data/gq/data/imagenet/nips/cam/samples/493694833dc23399.png\n",
      "913\n",
      "/data/gq/data/imagenet/nips/cam/samples/32c0e4647ce5a812.png\n",
      "914\n",
      "/data/gq/data/imagenet/nips/cam/samples/d959fd91192d5717.png\n",
      "915\n",
      "/data/gq/data/imagenet/nips/cam/samples/62c7958e7cd80cca.png\n",
      "916\n",
      "/data/gq/data/imagenet/nips/cam/samples/24726d9054e9d78f.png\n",
      "917\n",
      "/data/gq/data/imagenet/nips/cam/samples/c17d39b1eba4cc03.png\n",
      "918\n",
      "/data/gq/data/imagenet/nips/cam/samples/73a52afd2f818ed5.png\n",
      "919\n",
      "/data/gq/data/imagenet/nips/cam/samples/b217644382dcd864.png\n",
      "920\n",
      "/data/gq/data/imagenet/nips/cam/samples/39a483e9a23716ed.png\n",
      "921\n",
      "/data/gq/data/imagenet/nips/cam/samples/3efa3df701898afd.png\n",
      "922\n",
      "/data/gq/data/imagenet/nips/cam/samples/dde9f0aadcb02874.png\n",
      "923\n",
      "/data/gq/data/imagenet/nips/cam/samples/7c3b0d93654b39cd.png\n",
      "924\n",
      "/data/gq/data/imagenet/nips/cam/samples/abd121ef53a69ef8.png\n",
      "925\n",
      "/data/gq/data/imagenet/nips/cam/samples/938ada2f2bfa2b68.png\n",
      "926\n",
      "/data/gq/data/imagenet/nips/cam/samples/d0fe8afb55c3c7cd.png\n",
      "927\n",
      "/data/gq/data/imagenet/nips/cam/samples/e96d52f9fbe3ca0b.png\n",
      "928\n",
      "/data/gq/data/imagenet/nips/cam/samples/e91abe0f1a7a30f4.png\n",
      "929\n",
      "/data/gq/data/imagenet/nips/cam/samples/7368fe0ff47343a0.png\n",
      "930\n",
      "/data/gq/data/imagenet/nips/cam/samples/1cfa5381359bff9f.png\n",
      "931\n",
      "/data/gq/data/imagenet/nips/cam/samples/6bea02f26beef50d.png\n",
      "932\n",
      "/data/gq/data/imagenet/nips/cam/samples/96e77c20bf94ecb1.png\n",
      "933\n",
      "/data/gq/data/imagenet/nips/cam/samples/5b60477a29c7ef81.png\n",
      "934\n",
      "/data/gq/data/imagenet/nips/cam/samples/9876fe92d003c9d4.png\n",
      "935\n",
      "/data/gq/data/imagenet/nips/cam/samples/7c754696067fdfa9.png\n",
      "936\n",
      "/data/gq/data/imagenet/nips/cam/samples/62949c357e429690.png\n",
      "937\n",
      "/data/gq/data/imagenet/nips/cam/samples/dacb07f80166a7fd.png\n",
      "938\n",
      "/data/gq/data/imagenet/nips/cam/samples/eb53098ebcf05e64.png\n",
      "939\n",
      "/data/gq/data/imagenet/nips/cam/samples/95d6a4087f394d8b.png\n",
      "940\n",
      "/data/gq/data/imagenet/nips/cam/samples/c96358fe7b8eaf28.png\n",
      "941\n",
      "/data/gq/data/imagenet/nips/cam/samples/dd984311bff04342.png\n",
      "942\n",
      "/data/gq/data/imagenet/nips/cam/samples/ef5b1e5a76ae66dc.png\n",
      "943\n",
      "/data/gq/data/imagenet/nips/cam/samples/8d17aa69b4fd7b45.png\n",
      "944\n",
      "/data/gq/data/imagenet/nips/cam/samples/4de063bd5b838f11.png\n",
      "945\n",
      "/data/gq/data/imagenet/nips/cam/samples/c7d0c73d636300f5.png\n",
      "946\n",
      "/data/gq/data/imagenet/nips/cam/samples/afa0f88aaab03427.png\n",
      "947\n",
      "/data/gq/data/imagenet/nips/cam/samples/4d0c0f35a0c00bdc.png\n",
      "948\n",
      "/data/gq/data/imagenet/nips/cam/samples/784232355d49601b.png\n",
      "949\n",
      "/data/gq/data/imagenet/nips/cam/samples/a187afb98f295057.png\n",
      "950\n",
      "/data/gq/data/imagenet/nips/cam/samples/c6166621198a3de4.png\n",
      "951\n",
      "/data/gq/data/imagenet/nips/cam/samples/58420b727fcab02b.png\n",
      "952\n",
      "/data/gq/data/imagenet/nips/cam/samples/2bc6c55a0ab24f86.png\n",
      "953\n",
      "/data/gq/data/imagenet/nips/cam/samples/c0e0c11350b8740e.png\n",
      "954\n",
      "/data/gq/data/imagenet/nips/cam/samples/5792d4a42d2a82c8.png\n",
      "955\n",
      "/data/gq/data/imagenet/nips/cam/samples/d72f34526e12fd83.png\n",
      "956\n",
      "/data/gq/data/imagenet/nips/cam/samples/aa4e1cf9cb6e7801.png\n",
      "957\n",
      "/data/gq/data/imagenet/nips/cam/samples/8c6edf1ddfb61102.png\n",
      "958\n",
      "/data/gq/data/imagenet/nips/cam/samples/bc7dff0960bb3335.png\n",
      "959\n",
      "/data/gq/data/imagenet/nips/cam/samples/589319c64adf5fce.png\n",
      "960\n",
      "/data/gq/data/imagenet/nips/cam/samples/207fd3b5def218d1.png\n",
      "961\n",
      "/data/gq/data/imagenet/nips/cam/samples/71080285ad6cb4e9.png\n",
      "962\n",
      "/data/gq/data/imagenet/nips/cam/samples/f1a6fdadaa132225.png\n",
      "963\n",
      "/data/gq/data/imagenet/nips/cam/samples/c96c3eab644075d3.png\n",
      "964\n",
      "/data/gq/data/imagenet/nips/cam/samples/635ea505879178ed.png\n",
      "965\n",
      "/data/gq/data/imagenet/nips/cam/samples/df874264566c58a9.png\n",
      "966\n",
      "/data/gq/data/imagenet/nips/cam/samples/5dd8e133e66ecd3a.png\n",
      "967\n",
      "/data/gq/data/imagenet/nips/cam/samples/c4824f023903731a.png\n",
      "968\n",
      "/data/gq/data/imagenet/nips/cam/samples/8868879c2acd5d9e.png\n",
      "969\n",
      "/data/gq/data/imagenet/nips/cam/samples/2153d9869fb5a9ef.png\n",
      "970\n",
      "/data/gq/data/imagenet/nips/cam/samples/cec46dbd1fa3473a.png\n",
      "971\n",
      "/data/gq/data/imagenet/nips/cam/samples/803450d936b35ebb.png\n",
      "972\n",
      "/data/gq/data/imagenet/nips/cam/samples/1f7c25207bc3e303.png\n",
      "973\n",
      "/data/gq/data/imagenet/nips/cam/samples/33adbc27fdcadd65.png\n",
      "974\n",
      "/data/gq/data/imagenet/nips/cam/samples/8800cff23fade16a.png\n",
      "975\n",
      "/data/gq/data/imagenet/nips/cam/samples/a3c651cf20ee2d34.png\n",
      "976\n",
      "/data/gq/data/imagenet/nips/cam/samples/e7b61bec5e4ca40e.png\n",
      "977\n",
      "/data/gq/data/imagenet/nips/cam/samples/54153d17b11b495c.png\n",
      "978\n",
      "/data/gq/data/imagenet/nips/cam/samples/218e02b6cfa0466e.png\n",
      "979\n",
      "/data/gq/data/imagenet/nips/cam/samples/ebb4dad78cfd67a9.png\n",
      "980\n",
      "/data/gq/data/imagenet/nips/cam/samples/bb748281da5e8681.png\n",
      "981\n",
      "/data/gq/data/imagenet/nips/cam/samples/315e55af9615abd2.png\n",
      "982\n",
      "/data/gq/data/imagenet/nips/cam/samples/05f7c084329ff0c6.png\n",
      "983\n",
      "/data/gq/data/imagenet/nips/cam/samples/be95f5be87f6fadd.png\n",
      "984\n",
      "/data/gq/data/imagenet/nips/cam/samples/11954d93a7051cb5.png\n",
      "985\n",
      "/data/gq/data/imagenet/nips/cam/samples/45315ea51da415ab.png\n",
      "986\n",
      "/data/gq/data/imagenet/nips/cam/samples/dde33b51c8c152d2.png\n",
      "987\n",
      "/data/gq/data/imagenet/nips/cam/samples/81ddbe14219e9dcf.png\n",
      "988\n",
      "/data/gq/data/imagenet/nips/cam/samples/53fe22426ff21243.png\n",
      "989\n",
      "/data/gq/data/imagenet/nips/cam/samples/1c924877ccc60129.png\n",
      "990\n",
      "/data/gq/data/imagenet/nips/cam/samples/064e1cc405062c85.png\n",
      "991\n",
      "/data/gq/data/imagenet/nips/cam/samples/38bdd950c1d08be6.png\n",
      "992\n",
      "/data/gq/data/imagenet/nips/cam/samples/f6d5c95ce7908a58.png\n",
      "993\n",
      "/data/gq/data/imagenet/nips/cam/samples/f1ce339a44d7a118.png\n",
      "994\n",
      "/data/gq/data/imagenet/nips/cam/samples/229fbe790098d2e5.png\n",
      "995\n",
      "/data/gq/data/imagenet/nips/cam/samples/00312c7e7196baf4.png\n",
      "996\n",
      "/data/gq/data/imagenet/nips/cam/samples/362e4ac62cf888f4.png\n",
      "997\n",
      "/data/gq/data/imagenet/nips/cam/samples/3f8bf287f20333eb.png\n",
      "998\n",
      "/data/gq/data/imagenet/nips/cam/samples/42e55ac6782d4d99.png\n",
      "999\n",
      "/data/gq/data/imagenet/nips/cam/samples/cb63df64516985c1.png\n"
     ]
    }
   ],
   "source": [
    "import os\n",
    "import pandas as pd\n",
    "# 读取对应类别\n",
    "data = pd.read_csv('/data/gq/data/imagenet/nips/images.csv')\n",
    "labeles = {}\n",
    "for i in range(1000):\n",
    "    labeles[data['ImageId'][i]] = data['TrueLabel'][i]\n",
    "\n",
    "root = '/data/gq/data/imagenet/nips/2017/samples/'\n",
    "pathes = os.listdir(root)\n",
    "save_root = '/data/gq/data/imagenet/nips/cam/samples/'\n",
    "label = labeles[pathes[i].split('.')[0]]\n",
    "for i in range(len(pathes)):\n",
    "    print(i)\n",
    "    path = root + pathes[i]\n",
    "    label = labeles[pathes[i].split('.')[0]]\n",
    "    label = int(label) - 1\n",
    "    save_path = save_root + pathes[i]\n",
    "    print(save_path)\n",
    "    original_img, input_tensor = preprocess_image(path)\n",
    "    cam = cam_generator(input_tensor, label)\n",
    "    im = cam / np.max(cam) * 255\n",
    "    # im = np.uint8(255 * im)\n",
    "    im = Image.fromarray(im)\n",
    "    im = im.convert('RGB')\n",
    "    im.save(save_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d13070c9-cb30-4f88-b442-ad850a2eca1b",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.17"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
